X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=e4ac970f4bc597398750a60ca0988e59c6c700c1;hb=f6cb896bc4c0bafca1acd5ac3fb45169cd893e29;hp=6affc205e4e81b894443722b30f54457ff7669e3;hpb=7b78eb4af6e87532795d09bd82152002ab4a74b1;p=notmuch diff --git a/lib/database.cc b/lib/database.cc index 6affc205..e4ac970f 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -1300,7 +1300,7 @@ _resolve_message_id_to_thread_id (notmuch_database_t *notmuch, talloc_free (metadata_key); - return thread_id; + return talloc_strdup (ctx, thread_id); } static notmuch_status_t