From: Vinson Lee Date: Fri, 6 Nov 2009 20:00:14 +0000 (-0800) Subject: i915g: Fix memory leak when pci id is unknown. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=520b6abdecdaba856e5ca04938e18eb83b33dfaa;p=mesa.git i915g: Fix memory leak when pci id is unknown. --- diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c index c66558c320e..d4ee8f5339b 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -271,6 +271,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; }