From b45384902dd52850f7691a7480ee3c60fcea4b45 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 2 Jul 2020 10:10:53 +0200 Subject: [PATCH] cmd_url_open(): fix memleak --- src/command/cmd_funcs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index de7eb55c..5f6d8e60 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -9003,6 +9003,7 @@ cmd_url_open(ProfWin *window, const char *const command, gchar **args) if( 0 == g_strcmp0(scheme, "aesgcm")) { require_save = true; } + g_free(scheme); if (require_save) { gchar *save_args[] = { "open", args[1], "/tmp/profanity.tmp", NULL};