summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-12-08 00:43:38 -0800
committerVinson Lee <vlee@vmware.com>2009-12-08 00:43:38 -0800
commit1de1deffce9c7120a167af8553b606eec82e60a3 (patch)
tree9256461f7e3f89c1b4ec0934d4e84a4762777097
parent7e93e06781d2f3e0c737c7654c3fb0d83e31e45a (diff)
i915g: Fix memory leak when pci id is unknown.
-rw-r--r--src/gallium/drivers/i915simple/i915_screen.c1
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 9f017a14cc..9557c80ce1 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;
}