Fix memory leaks

This commit is contained in:
lostd 2014-10-08 15:27:46 +03:00
parent 4b56e4a122
commit bc766bc4a8

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