aboutsummaryrefslogtreecommitdiffstats
path: root/progs/xdemos/pbinfo.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-20 15:52:53 -0800
committerVinson Lee <[email protected]>2009-11-20 15:52:53 -0800
commite19195c1855ca0a12697ed3196f3d9a763d1363d (patch)
tree3dda3e4c9ea0369cbcd5186e84892ac44e95fd15 /progs/xdemos/pbinfo.c
parente0857962b911ef317238498305651515d83029ae (diff)
progs/xdemos: Fix memory leak in pbinfo.c.
Diffstat (limited to 'progs/xdemos/pbinfo.c')
-rw-r--r--progs/xdemos/pbinfo.c1
1 files changed, 1 insertions, 0 deletions
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;
}