[PATCH 4/8] Free libpciaccess iterator in xf86PciProbe

Keith Packard keithp at keithp.com
Thu Sep 17 18:14:34 PDT 2009


Signed-off-by: Keith Packard <keithp at keithp.com>
---
 hw/xfree86/common/xf86pciBus.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
index df62e07..ac018e7 100644
--- a/hw/xfree86/common/xf86pciBus.c
+++ b/hw/xfree86/common/xf86pciBus.c
@@ -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);
 }
 
 /*
-- 
1.6.3.3



More information about the xorg-devel mailing list