]> git.notmuchmail.org Git - notmuch/commit
lib/database: delete stemmer on destroy
authorDavid Bremner <david@tethera.net>
Sun, 9 Jan 2022 14:38:05 +0000 (10:38 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 23 Jan 2022 01:14:29 +0000 (21:14 -0400)
commit2786aa4d548d28579c761e9358d44c84dfb29068
tree955e2e8b65e52e3a93f0d6fa410a77203c276f21
parentdf7c5acd759f22fcb537490f62b85d39aa71d677
lib/database: delete stemmer on destroy

Commit [0] left the stemmer object accessible, but did not add
de-allocation code to notmuch_database_destroy. This commit corrects
that oversight.

Leak originally reported by Austin Ray [1].

[0]: 3202e0d1feba1ab955ba1c07098c00208f8f0ada
[1]: id:20220105224538.m36lnjn7rf3ieonc@athena
lib/database.cc
test/T800-asan.sh