X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Findex.cc;h=e58bc8706053e0c00c4e59d43d54fad2a189262f;hp=125fa6c94f2b6612f6aac3e36dfe518753eaddaf;hb=6ca6c089e9df7affe6bee0392197509a24ab2546;hpb=84742d86ab2fd3e5b5b601f073351454b993575e diff --git a/lib/index.cc b/lib/index.cc index 125fa6c9..e58bc870 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -31,7 +31,7 @@ _index_address_mailbox (notmuch_message_t *message, { InternetAddressMailbox *mailbox = INTERNET_ADDRESS_MAILBOX (address); const char *name, *addr; - void *local = talloc_new (NULL); + void *local = talloc_new (message); name = internet_address_get_name (address); addr = internet_address_mailbox_get_addr (mailbox);