]> granicus.if.org Git - neomutt/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)
commitb9b890120b7006dc82f347cf515e974bd9cc505c
treeeada4ae6aeec3c32292ef985fc7d96de6eb08fc4
parent91d2afb538cc90a5755adb2edb5c3dde8bb3725d
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