mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 05:30:11 +01:00
i915g: Fix memory leak when pci id is unknown.
This commit is contained in:
parent
56ab92bad8
commit
520b6abdec
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue