diff options
Diffstat (limited to 'booki.c')
| -rw-r--r-- | booki.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -606,9 +606,11 @@ void search(int argc, char* argv[], char* booki_file) { parse_book(cur_data, &book); print_book(book, true); write_book(book, fixed_file); + free_book(book); } fclose(fixed_file); + free(data); // copy the fixed_file to booki file bool success = copy(FIXED_FILE, booki_file); |
