i915g: Fix memory leak when pci id is unknown.
authorVinson Lee <vlee@vmware.com>
Fri, 6 Nov 2009 20:00:14 +0000 (12:00 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 10 Nov 2009 20:39:42 +0000 (12:39 -0800)
src/gallium/drivers/i915/i915_screen.c

index c66558c320eb0f87a7e989a7fe527b9772a4f7b8..d4ee8f5339bd8d1d1d274dfcdfbc3035066be871 100644 (file)
@@ -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;
    }