projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e085796
)
progs/xdemos: Fix memory leak in pbinfo.c.
author
Vinson Lee
<vlee@vmware.com>
Fri, 20 Nov 2009 23:52:53 +0000
(15:52 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 20 Nov 2009 23:52:53 +0000
(15:52 -0800)
progs/xdemos/pbinfo.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/pbinfo.c
b/progs/xdemos/pbinfo.c
index b43adf1bb70130b90c0b46637d0285c43e5da2b6..edfa9c1f3b0392300909b65c46ae0b98fa70eaae 100644
(file)
--- 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;
}