summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-03-20 13:25:06 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-03-20 13:25:06 -0700
commite411de3d660a5382e7cb8d31fa2fa1bc35823931 (patch)
tree44fcb4f0cca4e85e9a8dee417a06472a31d5c928
parentce6709132a322e82e915b761c0ced1bc418095ea (diff)
downloadxdpyinfo-e411de3d660a5382e7cb8d31fa2fa1bc35823931.tar.gz
xdpyinfo-e411de3d660a5382e7cb8d31fa2fa1bc35823931.tar.bz2
xdpyinfo-e411de3d660a5382e7cb8d31fa2fa1bc35823931.zip
Coverity #748: IsPrintScreen: Returned without freeing storage "pscreens"
-rw-r--r--xdpyinfo.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}