projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6dad04
)
fix mem leak (bug 11791)
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 1 Aug 2007 14:40:49 +0000
(08:40 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 1 Aug 2007 14:43:58 +0000
(08:43 -0600)
src/glut/glx/glut_dstr.c
patch
|
blob
|
history
diff --git
a/src/glut/glx/glut_dstr.c
b/src/glut/glx/glut_dstr.c
index ec9386f3e504fb6cc9f5e15dedb39034784767cb..2513af45394c4801e9cf4771cd54a7da7009abb5 100644
(file)
--- 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++) {