summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-13 16:27:18 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-13 16:30:37 +0100
commit489e2955687bccb263e1ece3a1615b3356c990f2 (patch)
tree6e26b9497314ba8a066e32a4515b697723760276 /src/config.c
parent5942e8483b712f1c83be625856ff7ee26ebc3898 (diff)
downloadpa-sink-ctl-489e2955687bccb263e1ece3a1615b3356c990f2.tar.gz
pa-sink-ctl-489e2955687bccb263e1ece3a1615b3356c990f2.tar.bz2
pa-sink-ctl-489e2955687bccb263e1ece3a1615b3356c990f2.zip
Fix some leaks
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c4
1 files changed, 4 insertions, 0 deletions
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;