ges-launch: free string before going out of scope

CID #1291632
This commit is contained in:
Luis de Bethencourt 2015-03-24 11:19:09 +00:00
parent 710d34adf4
commit 865634d66c

View file

@ -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;