[Commits] [SCM] claws branch, master, updated. 3.9.0-205-gfca4948
mones at claws-mail.org
mones at claws-mail.org
Thu May 2 10:25:55 CEST 2013
The branch master of project "claws" (Claws Mail) has been updated
via fca4948b25061209d75cac2d325bc88994685197 (commit)
from f46d6934781359c0a4e6df3f78e74a799c883f4a (commit)
- Log -----------------------------------------------------------------
commit fca4948b25061209d75cac2d325bc88994685197
Author: Ricardo Mones <ricardo at mones.org>
Date: Thu May 2 10:23:38 2013 +0200
Do not leak memory and unref the result if valid
diff --git a/src/news.c b/src/news.c
index 1102b4b..3717569 100644
--- a/src/news.c
+++ b/src/news.c
@@ -799,8 +799,11 @@ static gint news_get_article(Folder *folder, gint num, gchar *filename)
r = nntp_threaded_article(folder, num, &result, &len);
if (r == NEWSNNTP_NO_ERROR) {
- if (str_write_to_file(result, filename) < 0)
+ if (str_write_to_file(result, filename) < 0) {
+ mmap_string_unref(result);
return -1;
+ }
+ mmap_string_unref(result);
}
return r;
-----------------------------------------------------------------------
Summary of changes:
src/news.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list