From 22c32c0f2c9a4988dd3fe1a9493324449b702873 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sun, 19 Jan 2020 14:57:53 -0800 Subject: [PATCH] The error is now freed --- modes/drun.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modes/drun.c b/modes/drun.c index 97ab66a..e334ad5 100644 --- a/modes/drun.c +++ b/modes/drun.c @@ -312,6 +312,7 @@ static void launch_done(GObject* obj, GAsyncResult* result, gpointer data) { } else if(err != NULL) { char* cmd = data; fprintf(stderr, "%s cannot be executed: %s\n", cmd, err->message); + g_error_free(err); } else { char* cmd = data; fprintf(stderr, "%s cannot be executed\n", cmd);