summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-03-20 13:10:33 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-03-20 13:10:33 -0700
commitc896552ee94cf50f8acfccc49096e5ec564e5356 (patch)
treefe9ed1497d05c4b6aad099fec86bc4f16f2e463a
parentea8455a0932c21ef29e97d469b492dadc85dabdc (diff)
Coverity #752: XListDepths return leaked in print_xrender_info()
-rw-r--r--xdpyinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index 093b7c1..c132d78 100644
--- 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;
}