diff options
author | Brian <[email protected]> | 2007-08-01 08:40:49 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-01 08:43:58 -0600 |
commit | e9fbf69aeab590d5f292a7ca6bdeb5d2791f9918 (patch) | |
tree | 0bab893e5a173d9f4fd7e96c845964d58ae37fdf /src | |
parent | a6dad044e24358af9fe5764ca7b342f4ed4804db (diff) |
fix mem leak (bug 11791)
Diffstat (limited to 'src')
-rw-r--r-- | src/glut/glx/glut_dstr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glut/glx/glut_dstr.c b/src/glut/glx/glut_dstr.c index ec9386f3e50..2513af45394 100644 --- a/src/glut/glx/glut_dstr.c +++ b/src/glut/glx/glut_dstr.c @@ -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++) { |