summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrl <brl>2007-05-19 12:34:57 +0000
committerbrl <brl>2007-05-19 12:34:57 +0000
commit2ae15642de918f17a683329c517db21a1e5674a7 (patch)
treeeede7fe1b86b96108c2f2a7ff25cf168009625ea
parent2d60835a3e8ba8af87f0b61e5ceb022f4ef37003 (diff)
downloadratpoison-2ae15642de918f17a683329c517db21a1e5674a7.zip
* src/manage.c (get_wmname): free buffer to close memory hole
-rw-r--r--ChangeLog4
-rw-r--r--src/manage.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0ab0b49..0788560 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-19 Bernhard R. Link <brlink@debian.org>
+
+ * src/manage.c (get_wmname): free buffer to close memory hole
+
2007-05-17 Bernhard R. Link <brlink@debian.org>
* src/actions.c (cmd_windows): free buffer to close memory hole
diff --git a/src/manage.c b/src/manage.c
index 50743b4..1f94ee7 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -209,6 +209,7 @@ get_wmname (Window w)
name = (char *)text_prop.value;
} else {
XmbTextPropertyToTextList(dpy, &text_prop, &cl, &n);
+ XFree (text_prop.value);
if (cl) {
name = strdup(cl[0]);
XFreeStringList(cl);