]> 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)
commitbeb0cfcbf4811e9f6af5eaef1d0eb24cf4dead03
tree699048661147235dc492f83b2fb49cf7ea2643d4
parent248143a7bc2003acfe4452f83b193465046f1c53
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