From 865634d66c70515f39ee5d857174dad3764780c8 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Tue, 24 Mar 2015 11:19:09 +0000 Subject: [PATCH] ges-launch: free string before going out of scope CID #1291632 --- tools/ges-launch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ges-launch.c b/tools/ges-launch.c index 356fdbb8b2..d30088a638 100644 --- a/tools/ges-launch.c +++ b/tools/ges-launch.c @@ -597,8 +597,10 @@ sanitize_argument (gchar * arg) if (!space_index) return g_strdup (arg); - if (!equal_index || equal_index > space_index) + if (!equal_index || equal_index > space_index) { + g_free (new_string); return g_strdup_printf ("\"%s\"", arg); + } for (arg = arg; *arg != '\0'; arg++) { *tmp_string = *arg;