notmuch search: Clean up some memory leaks during search loop.
authorCarl Worth <cworth@cworth.org>
Tue, 25 Jan 2011 13:40:35 +0000 (23:40 +1000)
committerCarl Worth <cworth@cworth.org>
Wed, 26 Jan 2011 05:59:19 +0000 (15:59 +1000)
commitb64afb1ab9924749cd6d3fbfa02e5e42bb0d728b
tree69eb4ee545074944d7171dbca0c709bec0bddf0c
parent38ce0dbf82732590ef836767d3602db48ae345a9
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.
lib/thread.cc
notmuch-search.c
notmuch.c