projects
/
platform
/
upstream
/
xdpyinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce67091
)
Coverity #748: IsPrintScreen: Returned without freeing storage "pscreens"
author
Alan Coopersmith
<alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:25:06 +0000
(13:25 -0700)
committer
Alan Coopersmith
<alan.coopersmith@sun.com>
Tue, 20 Mar 2007 20:25:06 +0000
(13:25 -0700)
xdpyinfo.c
patch
|
blob
|
history
diff --git
a/xdpyinfo.c
b/xdpyinfo.c
index
5715590
..
039127d
100644
(file)
--- 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;
}
}