mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 18:58:10 +02:00
fix mem leak (bug 11791)
This commit is contained in:
parent
a6dad044e2
commit
e9fbf69aea
1 changed files with 1 additions and 0 deletions
|
|
@ -291,6 +291,7 @@ loadVisuals(int *nitems_return)
|
|||
fbmodes = (FrameBufferMode *) malloc(n * sizeof(FrameBufferMode));
|
||||
if (fbmodes == NULL) {
|
||||
*nitems_return = -1;
|
||||
free(vlist);
|
||||
return NULL;
|
||||
}
|
||||
for (i = 0; i < n; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue