i915g: Fix memory leak when pci id is unknown.
authorVinson Lee <vlee@vmware.com>
Tue, 8 Dec 2009 08:43:38 +0000 (00:43 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 8 Dec 2009 08:43:38 +0000 (00:43 -0800)
src/gallium/drivers/i915simple/i915_screen.c

index 9f017a14cca07595e55b6c80055e8cd472df454a..9557c80ce1229663407bd166ab868a89fbdf72a7 100644 (file)
@@ -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;
    }