diff options
author | brl <brl> | 2007-05-19 12:34:57 +0000 |
---|---|---|
committer | brl <brl> | 2007-05-19 12:34:57 +0000 |
commit | 2ae15642de918f17a683329c517db21a1e5674a7 (patch) | |
tree | eede7fe1b86b96108c2f2a7ff25cf168009625ea | |
parent | 2d60835a3e8ba8af87f0b61e5ceb022f4ef37003 (diff) | |
download | ratpoison-2ae15642de918f17a683329c517db21a1e5674a7.zip |
* src/manage.c (get_wmname): free buffer to close memory hole
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/manage.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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); |