Coverity #748: IsPrintScreen: Returned without freeing storage "pscreens"
authorAlan Coopersmith <alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:25:06 +0000 (13:25 -0700)
committerAlan Coopersmith <alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:25:06 +0000 (13:25 -0700)
xdpyinfo.c

index 5715590..039127d 100644 (file)
@@ -424,6 +424,7 @@ Bool IsPrintScreen(Screen *s)
         pscreens = XpQueryScreens(dpy, &pscrcount);
         for( i = 0 ; (i < pscrcount) && pscreens ; i++ ) {
             if (s == pscreens[i]) {
+                XFree(pscreens);
                 return True;
             }
         }