i915g: Fix memory leak when pci id is unknown.

This commit is contained in:
Vinson Lee 2009-12-08 00:43:38 -08:00
parent 7e93e06781
commit 1de1deffce

View 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;
}