summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2006-03-10 02:37:18 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2006-03-10 02:37:18 +0000
commit8d62050702532be39688d468663466199492510b (patch)
treef5ea535feb205989a262316b766dc9cd41250cb8
parent609828be5a05bc71fffaf8fc129a0cae8082fd57 (diff)
Clear two tiny memory leaks. (Coverity ids #900 & 901)XORG-7_0_99_901
-rw-r--r--ChangeLog5
-rw-r--r--xwininfo.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4a1fae9..87a93ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-09 Alan Coopersmith <alan.coopersmith@sun.com>
+
+ * xwininfo.c:
+ Clear two tiny memory leaks. (Coverity ids #900 & 901)
+
2005-12-20 Kevin E. Martin <kem-at-freedesktop-dot-org>
* configure.ac:
diff --git a/xwininfo.c b/xwininfo.c
index 2d63e13..b21b2fb 100644
--- a/xwininfo.c
+++ b/xwininfo.c
@@ -1,3 +1,4 @@
+/* $XdotOrg: $ */
/* $Xorg: xwininfo.c,v 1.4 2001/02/09 02:06:04 xorgcvs Exp $ */
/*
@@ -621,6 +622,8 @@ Display_Stats_Info(Window window)
printf(" Corners: +%d+%d -%d+%d -%d-%d +%d-%d\n",
rx, ry, xright, ry, xright, ybelow, rx, ybelow);
+ XFree(vinfo);
+
/*
* compute geometry string that would recreate window
*/
@@ -1108,4 +1111,6 @@ Display_WM_Info(Window window)
if (flags & StateHint)
printf(" Initial state is %s\n",
Lookup(wmhints->initial_state, _state_hints));
+
+ XFree(wmhints);
}