[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-271-g0c35d7403

wwp at claws-mail.org wwp at claws-mail.org
Thu Sep 30 11:38:25 CEST 2021


The branch, gtk3 has been updated
       via  0c35d74035d32b7486a044609aa3d3b1ff877e3f (commit)
      from  68a5fe8e484c636ed13a4e885139af701d1f1adb (commit)

Summary of changes:
 src/common/utils.c | 5 +++++
 1 file changed, 5 insertions(+)


- Log -----------------------------------------------------------------
commit 0c35d74035d32b7486a044609aa3d3b1ff877e3f
Author: wwp <subscript at free.fr>
Date:   Thu Sep 30 11:35:42 2021 +0200

    Fix CID 1491272, 1491265, 1491237 and 1491176: resource leaks.

diff --git a/src/common/utils.c b/src/common/utils.c
index d4abe2a8e..da705a147 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -1553,6 +1553,8 @@ gint scan_mailto_url(const gchar *mailto, gchar **from, gchar **to, gchar **cc,
 				my_att[num_attach] = NULL;
 				*attach = my_att;
 			}
+            else
+				g_free(my_att);
 		} else if (inreplyto && !*inreplyto &&
 			   !g_ascii_strcasecmp(field, "in-reply-to")) {
 			*inreplyto = decode_uri_gdup(value);
@@ -2384,6 +2386,7 @@ gint remove_dir_recursive(const gchar *dir)
 
 			if ((ret = remove_dir_recursive(dir_name)) < 0) {
 				g_warning("can't remove directory: %s", dir_name);
+				g_dir_close(dp);
 				return ret;
 			}
 		} else {
@@ -4022,6 +4025,7 @@ void mailcap_update_default(const gchar *type, const gchar *command)
 		else {
 			if(claws_fputs(buf, outfp) == EOF) {
 				err = TRUE;
+				g_strfreev(parts);
 				break;
 			}
 		}
@@ -4540,6 +4544,7 @@ static GSList *cm_split_path(const gchar *filename, int depth)
 		else if (!strcmp(path_parts[i], "..")) {
 			if (i == 0) {
 				errno =ENOTDIR;
+				g_strfreev(path_parts);
 				return NULL;
 			}
 			else /* Remove the last inserted element */

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list