[Commits] [SCM] claws branch, master, updated. 3.18.0-213-g911bd7831

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


The branch, master has been updated
       via  911bd78319d675833e1ff897ef4df4d66190854b (commit)
      from  9caee5ad89c1ba99497597114812b2b7982e0e7b (commit)

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


- Log -----------------------------------------------------------------
commit 911bd78319d675833e1ff897ef4df4d66190854b
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