Free libpciaccess iterator in xf86PciProbe

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Keith Packard 2009-09-17 18:14:34 -07:00 committed by Peter Hutterer
parent ded35b7bf7
commit d5959d37cd
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,7 @@ xf86PciProbe(void)
info->user_data = 0;
}
}
free(iter);
/* If we haven't found a primary device try a different heuristic */
if (primaryBus.type == BUS_NONE && num) {
@ -212,6 +212,7 @@ xf86PciProbe(void)
xf86ErrorF("\n");
}
xfree(xf86PciVideoInfo);
}
/*