]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/tree.c
Tweak version date
[bacula/bacula] / bacula / src / lib / tree.c
index f9fc4ac88613e6051f7b6769b1296f5d0e671bc6..4d6cac1d3c22e49859ebe45b100cb517e9b30bd0 100644 (file)
@@ -36,9 +36,9 @@
 #include "bacula.h"
 #include "findlib/find.h"
 
-#define PAGE_SIZE 4096
+#define B_PAGE_SIZE 4096
 #define MAX_PAGES 2400
-#define MAX_BUF_SIZE (MAX_PAGES * PAGE_SIZE)  /* approx 10MB */
+#define MAX_BUF_SIZE (MAX_PAGES * B_PAGE_SIZE)  /* approx 10MB */
 
 /* Forward referenced subroutines */
 static TREE_NODE *search_and_insert_tree_node(char *fname, int type,
@@ -184,6 +184,7 @@ void free_tree(TREE_ROOT *root)
    }
    Dmsg3(100, "Total size=%u blocks=%u freed_blocks=%u\n", root->total_size, root->blocks, freed_blocks);
    free(root);
+   garbage_collect_memory();
    return;
 }