adds a missing free a \n

This commit is contained in:
SuperNovaa41 2024-01-24 18:19:24 -05:00
parent 612224a100
commit 8e78e89f3b
2 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,7 @@ void remove_line_from_file(int id_to_remove)
file_exists = access(FILE_NAME, F_OK); file_exists = access(FILE_NAME, F_OK);
if (0 != file_exists) { if (0 != file_exists) {
fprintf(stderr, "%s does not exist!", FILE_NAME); fprintf(stderr, "%s does not exist!\n", FILE_NAME);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }

View File

@ -54,6 +54,7 @@ void do_ISBN_get(char* argv[])
// we need to free these strings // we need to free these strings
free(get_output.buf); free(get_output.buf);
free(new_book.authors); free(new_book.authors);
free(new_book.image_url);
} }
void process_args(char* argv[]) void process_args(char* argv[])