Fix memory leaks

This commit is contained in:
lostd 2014-10-08 15:27:46 +03:00
parent 4b56e4a122
commit bc766bc4a8
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}