dovecot-2.2-pigeonhole: sieve-storage: Fixed resource leak in st...

pigeonhole at rename-it.nl pigeonhole at rename-it.nl
Tue Jun 17 20:28:20 UTC 2014


details:   http://hg.rename-it.nl/dovecot-2.2-pigeonhole/rev/827a317cfdc3
changeset: 1871:827a317cfdc3
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Tue Jun 17 22:28:06 2014 +0200
description:
sieve-storage: Fixed resource leak in storage listing implementation occuring at error.
Reported by Coverity.

diffstat:

 src/lib-sievestorage/sieve-storage-list.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r f81d25ef0e66 -r 827a317cfdc3 src/lib-sievestorage/sieve-storage-list.c
--- a/src/lib-sievestorage/sieve-storage-list.c	Tue Jun 17 22:13:52 2014 +0200
+++ b/src/lib-sievestorage/sieve-storage-list.c	Tue Jun 17 22:28:06 2014 +0200
@@ -58,6 +58,9 @@
 		}
 	} T_END;
 
+	if ( ctx == NULL && closedir(dirp) < 0)
+		i_error("sieve-storage: closedir(%s) failed: %m",	storage->dir);
+
 	return ctx;
 }
 


More information about the dovecot-cvs mailing list