From: Vinson Lee Date: Fri, 20 Nov 2009 23:18:19 +0000 (-0800) Subject: progs/xdemos: Fix memory leak in glxpbdemo.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=538a8df65238994f70617a79ec1a0dbcd381001d;p=mesa.git progs/xdemos: Fix memory leak in glxpbdemo.c. --- diff --git a/progs/xdemos/glxpbdemo.c b/progs/xdemos/glxpbdemo.c index 91fd30dcaa6..ecf318ec6a7 100644 --- a/progs/xdemos/glxpbdemo.c +++ b/progs/xdemos/glxpbdemo.c @@ -106,6 +106,7 @@ MakePbuffer( Display *dpy, int screen, int width, int height ) if (0 == nConfigs || !fbConfigs) { printf("Error: glxChooseFBConfig failed\n"); + XFree(fbConfigs); XCloseDisplay(dpy); return 0; }