]> granicus.if.org Git - mutt/commit
Fix a memory leak in mutt_query_complete.
authorKevin McCarthy <kevin@8t8.us>
Fri, 10 Oct 2014 06:17:09 +0000 (14:17 +0800)
committerKevin McCarthy <kevin@8t8.us>
Fri, 10 Oct 2014 06:17:09 +0000 (14:17 +0800)
commitc53600236f300cc165ca7d81d3bdaf081aab352b
treeeada4ae6aeec3c32292ef985fc7d96de6eb08fc4
parent084e7a2ab0f96eede903708bce0e8474ce5c0de6
Fix a memory leak in mutt_query_complete.

When a single result was returned, it was written to the buffer and
returned, but the query result was never freed.

This patch creates a free_query function and changes the code to use
that everywhere.
query.c