progs/xdemos: Fix memory leak in pbinfo.c.
authorVinson Lee <vlee@vmware.com>
Fri, 20 Nov 2009 23:52:53 +0000 (15:52 -0800)
committerVinson Lee <vlee@vmware.com>
Fri, 20 Nov 2009 23:52:53 +0000 (15:52 -0800)
progs/xdemos/pbinfo.c

index b43adf1bb70130b90c0b46637d0285c43e5da2b6..edfa9c1f3b0392300909b65c46ae0b98fa70eaae 100644 (file)
@@ -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;
    }