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

index 91fd30dcaa693afc949229407323a472033e837d..ecf318ec6a7bc3efa13a7b13c7bd7c9a45d4b324 100644 (file)
@@ -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;
    }