foxygit / doom Log in
commit 5409a57f1345db7e12dc5c3ea8578107879e2302
Author:     David Carlier <devnexen@gmail.com>
AuthorDate: Tue Jun 20 15:16:11 2017 +0100
Commit:     David Carlier <devnexen@gmail.com>
CommitDate: Tue Jun 20 15:16:11 2017 +0100

    Tiny memory leak fix in call error path.
---
 textscreen/txt_window.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c
index 48d01f79..f2fda774 100644
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -539,6 +539,7 @@ void TXT_OpenURL(char *url)
     {
         fprintf(stderr,
                 "xdg-utils is not installed. Can't open this URL:\n%s\n", url);
+        free(cmd);
         return;
     }