Fix possible memory leak #361.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 25 Oct 2018 21:29:06 +0000 (23:29 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 25 Oct 2018 21:29:06 +0000 (23:29 +0200)
src/command.c

index 344a06d..e832441 100644 (file)
@@ -337,6 +337,7 @@ gboolean command_spawn_editor(Client *c, const Arg *arg,
 
 error:
     unlink(file_path);
+    g_free(command);
     g_free(file_path);
     g_strfreev(argv);
     return FALSE;