projects
/
platform
/
upstream
/
xdpyinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea8455a
)
Coverity #752: XListDepths return leaked in print_xrender_info()
author
Alan Coopersmith
<alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:10:33 +0000
(13:10 -0700)
committer
Alan Coopersmith
<alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:10:33 +0000
(13:10 -0700)
xdpyinfo.c
patch
|
blob
|
history
diff --git
a/xdpyinfo.c
b/xdpyinfo.c
index
093b7c1
..
c132d78
100644
(file)
--- a/
xdpyinfo.c
+++ b/
xdpyinfo.c
@@
-1120,6
+1120,7
@@
print_xrender_info(Display *dpy, char *extname)
for (count = 0; (pictform = XRenderFindFormat (dpy, PictFormatDepth, &templ, count)); count++)
printf(" pict format id: 0x%lx\n", pictform->id);
}
+ if (depths) XFree (depths);
}
return 1;
}