]> git.notmuchmail.org Git - notmuch/commitdiff
lib/index: Fix memory leak for email addresses without names.
authorCarl Worth <cworth@cworth.org>
Tue, 1 Dec 2009 20:40:13 +0000 (12:40 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 1 Dec 2009 20:40:13 +0000 (12:40 -0800)
We carefully noted the fact that we had locally allocated the string
here, but then we neglected to free it. Switch to talloc instead
which makes it easier to get the behavior we want. It's simpler since
we can just call talloc_free unconditionally, without having to track
the state of whether we allocated the storage for name or not.


No differences found