i915g: Fix memory leak when pci id is unknown.

This commit is contained in:
Vinson Lee 2009-11-06 12:00:14 -08:00
parent 56ab92bad8
commit 520b6abdec

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