From 489e2955687bccb263e1ece3a1615b3356c990f2 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 13 Dec 2011 16:27:18 +0100 Subject: Fix some leaks --- src/config.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index a3535d1..96fba47 100644 --- a/src/config.c +++ b/src/config.c @@ -56,6 +56,7 @@ parse_priorities(struct config *cfg) list_append_struct(cfg->priorities, p); } + g_strfreev(groups); return 0; @@ -68,6 +69,8 @@ error: g_printerr("Failed to read property in prioritiy group '%s': %s\n", groups[i], error->message); + g_strfreev(groups); + return -1; } @@ -144,6 +147,7 @@ read_input_mappings(struct config *cfg) g_hash_table_insert(cfg->keymap, GINT_TO_POINTER(key), &command_cbs[i]); } + g_strfreev(list); } return 0; -- cgit