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:
Carl Worth 2010-09-20 22:01:52 +00:00
parent 341e2bd86e
commit 029830c1f1

View file

@ -1300,7 +1300,7 @@ _resolve_message_id_to_thread_id (notmuch_database_t *notmuch,
talloc_free (metadata_key); talloc_free (metadata_key);
return thread_id; return talloc_strdup (ctx, thread_id);
} }
static notmuch_status_t static notmuch_status_t