From bc766bc4a88accf873d9ec29e7c274804065a916 Mon Sep 17 00:00:00 2001
From: lostd <lostd@2f30.org>
Date: Wed, 8 Oct 2014 15:27:46 +0300
Subject: [PATCH] Fix memory leaks

---
 noice.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/noice.c b/noice.c
index eed91895..9c6aac58 100644
--- a/noice.c
+++ b/noice.c
@@ -421,6 +421,7 @@ again:
 				bin = openwith(name);
 				if (bin == NULL) {
 					printmsg("No association");
+					free(pathnew);
 					goto nochange;
 				}
 
@@ -439,6 +440,7 @@ again:
 				goto redraw;
 			default:
 				printmsg("Unsupported file");
+				free(pathnew);
 				goto nochange;
 			}
 		}
-- 
2.51.0