From: Vinson Lee Date: Tue, 8 Dec 2009 08:43:38 +0000 (-0800) Subject: i915g: Fix memory leak when pci id is unknown. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1de1deffce9c7120a167af8553b606eec82e60a3;p=mesa.git i915g: Fix memory leak when pci id is unknown. --- diff --git a/src/gallium/drivers/i915simple/i915_screen.c b/src/gallium/drivers/i915simple/i915_screen.c index 9f017a14cca..9557c80ce12 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; }