Coverity #752: XListDepths return leaked in print_xrender_info()
authorAlan Coopersmith <alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:10:33 +0000 (13:10 -0700)
committerAlan Coopersmith <alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:10:33 +0000 (13:10 -0700)
xdpyinfo.c

index 093b7c1..c132d78 100644 (file)
@@ -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;
   }