summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-06 12:00:14 -0800
committerVinson Lee <[email protected]>2009-11-10 12:39:42 -0800
commit520b6abdecdaba856e5ca04938e18eb83b33dfaa (patch)
tree7a7f40c5e41f5051d6422b505d1ba932b7a5a4cd
parent56ab92bad8f1d05bc22b8a8471d5aeb663f220de (diff)
i915g: Fix memory leak when pci id is unknown.
-rw-r--r--src/gallium/drivers/i915/i915_screen.c1
1 files changed, 1 insertions, 0 deletions
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;
}