[Commits] [SCM] claws branch, master, updated. 3.11.1-120-g8d39c74
mones at claws-mail.org
mones at claws-mail.org
Sat Jun 6 13:52:45 CEST 2015
The branch, master has been updated
via 8d39c742f618aa562874fe08ab389ef1a60da0be (commit)
from bd68b59f018977e29f122aea928068c44b118b1f (commit)
Summary of changes:
src/plugins/libravatar/libravatar_missing.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit 8d39c742f618aa562874fe08ab389ef1a60da0be
Author: Ricardo Mones <ricardo at mones.org>
Date: Sat Jun 6 13:52:23 2015 +0200
Fix low probability resource leak
diff --git a/src/plugins/libravatar/libravatar_missing.c b/src/plugins/libravatar/libravatar_missing.c
index c56ef32..ee28fde 100644
--- a/src/plugins/libravatar/libravatar_missing.c
+++ b/src/plugins/libravatar/libravatar_missing.c
@@ -1,7 +1,7 @@
/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2014 Hiroyuki Yamamoto and the Claws Mail Team
- * Copyright (C) 2014 Ricardo Mones
+ * Copyright (C) 1999-2015 Hiroyuki Yamamoto and the Claws Mail Team
+ * Copyright (C) 2014-2015 Ricardo Mones
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@ GHashTable *missing_load_from_file(const gchar *filename)
time_t t;
long long unsigned seen;
gchar md5sum[33];
- GHashTable *table;
+ GHashTable *table = NULL;
int r = 0, a = 0, d = 0;
if (file == NULL) {
@@ -50,7 +50,7 @@ GHashTable *missing_load_from_file(const gchar *filename)
t = time(NULL);
if (t == (time_t)-1) {
g_warning("Cannot get time!\n");
- return NULL;
+ goto close_exit;
}
table = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
@@ -70,6 +70,7 @@ GHashTable *missing_load_from_file(const gchar *filename)
a++;
}
+close_exit:
if (fclose(file) != 0)
g_warning("Error closing %s\n", filename);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list