mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 16:26:21 +00:00
cmd_url_open(): fix memleak
This commit is contained in:
@@ -9003,6 +9003,7 @@ cmd_url_open(ProfWin *window, const char *const command, gchar **args)
|
|||||||
if( 0 == g_strcmp0(scheme, "aesgcm")) {
|
if( 0 == g_strcmp0(scheme, "aesgcm")) {
|
||||||
require_save = true;
|
require_save = true;
|
||||||
}
|
}
|
||||||
|
g_free(scheme);
|
||||||
|
|
||||||
if (require_save) {
|
if (require_save) {
|
||||||
gchar *save_args[] = { "open", args[1], "/tmp/profanity.tmp", NULL};
|
gchar *save_args[] = { "open", args[1], "/tmp/profanity.tmp", NULL};
|
||||||
|
|||||||
Reference in New Issue
Block a user