dovecot-2.2: lib: hash-format - fix leak on _init() failure path
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 16 17:29:23 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/4374e04f6aae
changeset: 17818:4374e04f6aae
user: Phil Carmody <phil at dovecot.fi>
date: Tue Sep 16 20:29:04 2014 +0300
description:
lib: hash-format - fix leak on _init() failure path
If any of the analysis/parse helpers return failure, then the whole pool
will leak.
Signed-off-by: Phil Carmody <phil at dovecot.fi>
diffstat:
src/lib/hash-format.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r ad16c74f4f36 -r 4374e04f6aae src/lib/hash-format.c
--- a/src/lib/hash-format.c Tue Sep 16 15:43:42 2014 +0300
+++ b/src/lib/hash-format.c Tue Sep 16 20:29:04 2014 +0300
@@ -134,6 +134,7 @@
} T_END;
if (ret < 0) {
*error_r = t_strdup(*error_r);
+ pool_unref(&pool);
return -1;
}
*format_r = format;
More information about the dovecot-cvs
mailing list