mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
glx: get rid of memory leak
It fixes Coverity issue: `CID 1468356: Resource leaks (RESOURCE_LEAK)`
Fixes: e1964496 ("glx: initial plumbing to let users force-enable/disable extensions")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7310>
This commit is contained in:
parent
26f58e87a0
commit
638ebdea78
1 changed files with 2 additions and 0 deletions
|
|
@ -502,6 +502,8 @@ __ParseExtensionOverride(struct glx_screen *psc,
|
|||
enable ? "enable" : "disable", field);
|
||||
}
|
||||
}
|
||||
|
||||
free(env);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue