diff options
author | Vinson Lee <[email protected]> | 2009-11-20 15:52:53 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-11-20 15:52:53 -0800 |
commit | e19195c1855ca0a12697ed3196f3d9a763d1363d (patch) | |
tree | 3dda3e4c9ea0369cbcd5186e84892ac44e95fd15 /progs/xdemos | |
parent | e0857962b911ef317238498305651515d83029ae (diff) |
progs/xdemos: Fix memory leak in pbinfo.c.
Diffstat (limited to 'progs/xdemos')
-rw-r--r-- | progs/xdemos/pbinfo.c | 1 |
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; } |