Mesa (mesa_7_6_branch): i915g: Fix memory leak when pci id is unknown.

Vinson Lee vlee at kemper.freedesktop.org
Tue Dec 8 00:44:14 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 1de1deffce9c7120a167af8553b606eec82e60a3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1de1deffce9c7120a167af8553b606eec82e60a3

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Dec  8 00:43:38 2009 -0800

i915g: Fix memory leak when pci id is unknown.

---

 src/gallium/drivers/i915simple/i915_screen.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/i915simple/i915_screen.c b/src/gallium/drivers/i915simple/i915_screen.c
index 9f017a1..9557c80 100644
--- a/src/gallium/drivers/i915simple/i915_screen.c
+++ b/src/gallium/drivers/i915simple/i915_screen.c
@@ -273,6 +273,7 @@ i915_create_screen(struct intel_winsys *iws, uint pci_id)
    default:
       debug_printf("%s: unknown pci id 0x%x, cannot create screen\n", 
                    __FUNCTION__, pci_id);
+      FREE(is);
       return NULL;
    }
 



More information about the mesa-commit mailing list