From 673383d04702990cd79d7ceb98507cef70f818ec Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 14 Sep 2003 20:56:48 +0000 Subject: [PATCH] fix mem leak --- openbox/action.c | 1 + openbox/config.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/openbox/action.c b/openbox/action.c index 51de17da..0a969a86 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -800,6 +800,7 @@ void action_execute(union ActionData *data) g_warning("failed to execute '%s': %s", cmd, e->message); } + g_free(cmd); } else { g_warning("failed to convert '%s' from utf8", data->execute.path); } diff --git a/openbox/config.c b/openbox/config.c index 42a9433d..c840f83e 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -390,6 +390,8 @@ void config_shutdown() g_free(config_theme); + g_free(config_title_layout); + for (it = config_desktops_names; it; it = g_slist_next(it)) g_free(it->data); g_slist_free(config_desktops_names); -- 2.39.2