From: Vinson Lee Date: Fri, 20 Nov 2009 23:52:53 +0000 (-0800) Subject: progs/xdemos: Fix memory leak in pbinfo.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e19195c1855ca0a12697ed3196f3d9a763d1363d;p=mesa.git progs/xdemos: Fix memory leak in pbinfo.c. --- diff --git a/progs/xdemos/pbinfo.c b/progs/xdemos/pbinfo.c index b43adf1bb70..edfa9c1f3b0 100644 --- a/progs/xdemos/pbinfo.c +++ b/progs/xdemos/pbinfo.c @@ -27,6 +27,7 @@ PrintConfigs(Display *dpy, int screen, Bool horizFormat) fbConfigs = GetAllFBConfigs(dpy, screen, &nConfigs); if (!nConfigs || !fbConfigs) { printf("Error: glxGetFBConfigs failed\n"); + XFree(fbConfigs); return; }