From 81c44f6f3dd1c61cea221e9c0593daaa87d92399 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Wed, 1 Aug 2007 14:49:39 +0300 Subject: [PATCH] free forgotten value --- 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 ec9386f..2513af4 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++) { -- 1.5.2.3