more small fixes

This commit is contained in:
hexcoder-
2020-11-13 00:44:08 +01:00
parent 4a4c14c9a9
commit 54a312a5fe
5 changed files with 13 additions and 9 deletions

View File

@ -342,7 +342,7 @@ u8 *find_binary(u8 *fname) {
if (stat(target_path, &st) || !S_ISREG(st.st_mode) ||
!(st.st_mode & 0111) || st.st_size < 4) {
free(target_path);
ck_free(target_path);
FATAL("Program '%s' not found or not executable", fname);
}