aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-02 10:10:53 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-02 10:10:53 +0200
commitb45384902dd52850f7691a7480ee3c60fcea4b45 (patch)
tree7b1aaf85e203fed7c7159b31d5106365a017b5f2 /src/command
parent274e69532061d1680b8c738d00a2fefe28734673 (diff)
downloadprofani-tty-b45384902dd52850f7691a7480ee3c60fcea4b45.tar.gz
cmd_url_open(): fix memleak
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c1
1 files changed, 1 insertions, 0 deletions
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};