mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
fix mem leak (bug 11791)
This commit is contained in:
parent
897d0ac5cc
commit
1904fd095f
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