From: Vinson Lee Date: Fri, 20 Nov 2009 23:48:29 +0000 (-0800) Subject: progs/xdemos: Fix memory leak in pbdemo.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0857962b911ef317238498305651515d83029ae;p=mesa.git progs/xdemos: Fix memory leak in pbdemo.c. --- diff --git a/progs/xdemos/pbdemo.c b/progs/xdemos/pbdemo.c index 2573209336c..277df729246 100644 --- a/progs/xdemos/pbdemo.c +++ b/progs/xdemos/pbdemo.c @@ -131,6 +131,7 @@ MakePbuffer( Display *dpy, int screen, int width, int height ) fbConfigs = ChooseFBConfig(dpy, screen, fbAttribs[attempt], &nConfigs); if (nConfigs==0 || !fbConfigs) { printf("Note: glXChooseFBConfig(%s) failed\n", fbString[attempt]); + XFree(fbConfigs); continue; }