void-packages/srcpkgs/fsearch/patches/musl-no-malloc_trim.diff
2021-10-17 21:27:05 +00:00

13 lines
384 B
Diff

diff -ruN fsearch-0.1/src/fsearch_database.c fsearch-0.1-musl/src/fsearch_database.c
--- fsearch-0.1/src/fsearch_database.c 2021-09-25 02:41:49.000000000 +1000
+++ fsearch-0.1-musl/src/fsearch_database.c 2021-09-25 21:42:00.187684634 +1000
@@ -1454,7 +1454,9 @@
g_clear_pointer(&db, free);
+#ifdef __GLIBC__
malloc_trim(0);
+#endif
g_debug("[db_free] freed");
}