1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Fix memleak in cmd_urlopen()

This commit is contained in:
Michael Vetter 2020-05-29 11:32:32 +02:00
parent de91a99178
commit ac5ce105ac

View File

@ -8921,7 +8921,9 @@ cmd_urlopen(ProfWin *window, const char *const command, gchar **args)
return TRUE;
}
call_external(prefs_get_string(PREF_URL_OPEN_CMD), args[0]);
gchar* cmd = prefs_get_string(PREF_URL_OPEN_CMD);
call_external(cmd, args[0]);
g_free(cmd);
} else {
cons_show("urlopen not supported in this window");
}