mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Fix memory leaks
This commit is contained in:
parent
4b56e4a122
commit
bc766bc4a8
1 changed files with 2 additions and 0 deletions
2
noice.c
2
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue