From b64afb1ab9924749cd6d3fbfa02e5e42bb0d728b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 25 Jan 2011 23:40:35 +1000 Subject: 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. --- notmuch.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'notmuch.c') 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); -- cgit v1.2.3