mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
Tighten up a memory allocation.
Using the local talloc context ensures that the memory we are using here will be freed shortly, (rather than hanging on for a long time with the notmuch database object).
This commit is contained in:
parent
36161181df
commit
8bef9ba922
1 changed files with 1 additions and 1 deletions
|
@ -1710,7 +1710,7 @@ notmuch_database_remove_message (notmuch_database_t *notmuch,
|
||||||
if (status)
|
if (status)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
term = talloc_asprintf (notmuch, "%s%s", prefix, direntry);
|
term = talloc_asprintf (local, "%s%s", prefix, direntry);
|
||||||
|
|
||||||
find_doc_ids_for_term (notmuch, term, &i, &end);
|
find_doc_ids_for_term (notmuch, term, &i, &end);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue