The error is now freed

This commit is contained in:
Scoopta 2020-01-19 14:57:53 -08:00
parent a84b2cd980
commit 22c32c0f2c

View File

@ -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);