mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
st/dri: Fix a memory leak in dri1_init_screen.
Free the returned configs upon errors.
This commit is contained in:
parent
f6f5cba9a6
commit
aa1a790360
1 changed files with 2 additions and 0 deletions
|
|
@ -514,6 +514,8 @@ dri1_init_screen(__DRIscreen * sPriv)
|
|||
|
||||
return configs;
|
||||
fail:
|
||||
if (configs)
|
||||
FREE(configs);
|
||||
dri_destroy_screen_helper(screen);
|
||||
FREE(screen);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue