diff options
| author | Ben Winston | 2024-05-30 22:05:21 -0400 |
|---|---|---|
| committer | Ben Winston | 2024-05-30 22:05:21 -0400 |
| commit | a0bcdfb2d76c08fc816d5e7375d8d5830b630adf (patch) | |
| tree | 119bb7d2ce2418f72d1b21b2d64bff4fa672ebae /booki.c | |
| parent | 5cf31cbf086564fbf2f937a921c183fec77c8487 (diff) | |
bugfix: memory leak
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); |
