[Commits] [SCM] claws branch, master, updated. 3.13.0-62-g2d95171
Colin
colin at claws-mail.org
Fri Nov 13 13:46:47 CET 2015
The branch, master has been updated
via 2d95171a97d46817e1e413b3d0a77b92072cc034 (commit)
from e72d26e92357a15163457a3f5af479ce53aaf5b3 (commit)
Summary of changes:
src/plugins/mailmbox/mmapstring.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 2d95171a97d46817e1e413b3d0a77b92072cc034
Author: Colin Leroy <colin at colino.net>
Date: Fri Nov 13 13:47:48 2015 +0100
One more leak (introduced in previous commit)
diff --git a/src/plugins/mailmbox/mmapstring.c b/src/plugins/mailmbox/mmapstring.c
index 2a70e5e..535e04b 100644
--- a/src/plugins/mailmbox/mmapstring.c
+++ b/src/plugins/mailmbox/mmapstring.c
@@ -300,11 +300,15 @@ mmap_string_sized_new (size_t dfl_size)
string->fd = -1;
string->mmapped_size = 0;
- if (mmap_string_maybe_expand (string, MAX (dfl_size, 2)) == NULL)
+ if (mmap_string_maybe_expand (string, MAX (dfl_size, 2)) == NULL) {
+ free(string);
return NULL;
+ }
- if (string->str == NULL)
+ if (string->str == NULL) {
+ free(string);
return NULL;
+ }
string->str[0] = '\0';
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list