mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 11:58:08 +00:00
fix afl-common.c for *BSD
This commit is contained in:
@ -50,7 +50,6 @@ void detect_file_args(char **argv, u8 *prog_in, u8 *use_stdin) {
|
||||
if ((buf = (char *)malloc((size_t)size)) != NULL) {
|
||||
|
||||
cwd = getcwd(buf, (size_t)size); /* portable version */
|
||||
ck_free(buf);
|
||||
|
||||
} else {
|
||||
|
||||
@ -104,7 +103,7 @@ void detect_file_args(char **argv, u8 *prog_in, u8 *use_stdin) {
|
||||
|
||||
}
|
||||
|
||||
ck_free(cwd); /* not tracked */
|
||||
free(cwd); /* not tracked!!!! */
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user