summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);