From 8b7d613813fee38d6d9fbf68406d6ba97c29d8bb Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Wed, 13 Jun 2012 16:29:35 +0530 Subject: [PATCH] role-cork: Fix a minor leak --- src/modules/module-role-cork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/module-role-cork.c b/src/modules/module-role-cork.c index a4270a4..8d003da 100644 --- a/src/modules/module-role-cork.c +++ b/src/modules/module-role-cork.c @@ -227,7 +227,7 @@ int pa__init(pa_module *m) { char *n = NULL; while ((n = pa_split(roles, ",", &split_state))) if (n[0] != '\0') - pa_idxset_put(u->trigger_roles, pa_xstrdup(n), NULL); + pa_idxset_put(u->trigger_roles, n, NULL); } if (pa_idxset_isempty(u->trigger_roles)) { pa_log_debug("Using role 'phone' as trigger role."); @@ -241,7 +241,7 @@ int pa__init(pa_module *m) { char *n = NULL; while ((n = pa_split(roles, ",", &split_state))) if (n[0] != '\0') - pa_idxset_put(u->cork_roles, pa_xstrdup(n), NULL); + pa_idxset_put(u->cork_roles, n, NULL); } if (pa_idxset_isempty(u->cork_roles)) { pa_log_debug("Using roles 'music' and 'video' as cork roles."); -- 2.7.4