aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--noice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/noice.c b/noice.c
index eed9189..9c6aac5 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;
}
}