summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2007-08-10 12:08:57 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2007-08-10 12:08:57 -0700
commit64326bae4e9b9c05b8781403ee27af95065eb2fb (patch)
tree58e8d832fa6db820eb23c4d9b86711d9f4d4f8f0
parent866ceb3a671a9ab93b3ecbdf3231902ab2251ce3 (diff)
Coverity #905: Handle_Prop_Requests returned without freeing storage "thunks"
-rw-r--r--xprop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xprop.c b/xprop.c
index 2279219..c026c11 100644
--- a/xprop.c
+++ b/xprop.c
@@ -1287,14 +1287,14 @@ Handle_Prop_Requests (int argc, char **argv)
char *format, *dformat, *prop;
thunk *thunks, t;
- thunks = Create_Thunk_List();
-
/* if no prop referenced, by default list all properties for given window */
if (!argc) {
Show_All_Props();
return NULL;
}
+ thunks = Create_Thunk_List();
+
while (argc > 0) {
format = NULL;
dformat = NULL;