summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosias <me@josias.dev>2021-11-24 09:28:10 -0800
committerJosias <me@josias.dev>2021-11-24 09:28:10 -0800
commitf19416549b82f421c29124ae985831cca2470876 (patch)
tree4be69675b182bc853337f35356e7edf18b7daba3
parentbf5ee7abf4a0a6dcd3b467984dd4d7a59b8c1ae5 (diff)
search: fix memory leak when loading files
-rw-r--r--search.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/search.c b/search.c
index 7fbdd3a..366638c 100644
--- a/search.c
+++ b/search.c
@@ -68,6 +68,7 @@ struct search_result *search(struct notebook notebook, const char query[100], si
result_index++;
}
+ free(contents);
fclose(fp);
}