aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2011-01-25 23:40:35 +1000
committerGravatar Carl Worth <cworth@cworth.org>2011-01-26 15:59:19 +1000
commitb64afb1ab9924749cd6d3fbfa02e5e42bb0d728b (patch)
tree69eb4ee545074944d7171dbca0c709bec0bddf0c /notmuch.c
parent38ce0dbf82732590ef836767d3602db48ae345a9 (diff)
notmuch search: Clean up some memory leaks during search loop.
With talloc, we were already freeing all memory by the time we exited the loop, but that didn't help with excess use of memory inside the loop, (which was mostly from tallocing some objects with the incorrect parent). Thanks to Andrew Tridgell for sitting next to me and teaching me to use talloc_report_full to find these leaks.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch.c b/notmuch.c
index c028aeb9..40da62b6 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -548,6 +548,8 @@ main (int argc, char *argv[])
command_t *command;
unsigned int i;
+ talloc_enable_null_tracking ();
+
local = talloc_new (NULL);
g_mime_init (0);