mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
lib: Fix use-after-free bug.
Thanks to the new git-based test suite, it's easy to run the whole test suite in valgrind, (simply "make test OPTIONS="--valgrind"), and doing so showed this obvious use-after-free bug, (triggered by the thread-order tests).
This commit is contained in:
parent
341e2bd86e
commit
029830c1f1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue