[dovecot/core] fccd11: lib-storage: Fix memory leak in mail_search_args_s...
GitHub
noreply at github.com
Thu May 4 20:30:09 EEST 2017
Branch: refs/heads/master
Home: https://github.com/dovecot/core
Commit: fccd110b494a7e31f23d31d9e3bc3e986c9bb1a8
https://github.com/dovecot/core/commit/fccd110b494a7e31f23d31d9e3bc3e986c9bb1a8
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2017-05-04 (Thu, 04 May 2017)
Changed paths:
M src/lib-storage/mail-search-args-simplify.c
M src/lib-storage/test-mail-search-args-simplify.c
Log Message:
-----------
lib-storage: Fix memory leak in mail_search_args_simplify()
The leaks happened when search args were already initialized (which they
usually were at this point) and some of the args were dropped entirely.
Improved the unit test to initialize search args before calling the
simplify, so valgrind would notice if there are any leaks.
More information about the dovecot-cvs
mailing list