From c896552ee94cf50f8acfccc49096e5ec564e5356 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 20 Mar 2007 13:10:33 -0700 Subject: [PATCH] Coverity #752: XListDepths return leaked in print_xrender_info() --- xdpyinfo.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.7.4