From: Alan Coopersmith Date: Tue, 20 Mar 2007 20:25:06 +0000 (-0700) Subject: Coverity #748: IsPrintScreen: Returned without freeing storage "pscreens" X-Git-Tag: xdpyinfo-1.0.2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e411de3d660a5382e7cb8d31fa2fa1bc35823931;p=platform%2Fupstream%2Fxdpyinfo.git Coverity #748: IsPrintScreen: Returned without freeing storage "pscreens" --- diff --git a/xdpyinfo.c b/xdpyinfo.c index 5715590..039127d 100644 --- a/xdpyinfo.c +++ b/xdpyinfo.c @@ -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; } }