[Commits] [SCM] claws branch, master, updated. 3.18.0-174-g29102bfa0
wwp at claws-mail.org
wwp at claws-mail.org
Mon Sep 27 18:04:55 CEST 2021
The branch, master has been updated
via 29102bfa04d70747eea3aa7c2a97b1c09d4299e1 (commit)
from cb22c1707da6e72655d55cbfbd7b602db959547c (commit)
Summary of changes:
src/ssl_manager.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 29102bfa04d70747eea3aa7c2a97b1c09d4299e1
Author: wwp <subscript at free.fr>
Date: Mon Sep 27 18:03:43 2021 +0200
Fix CID 1491200, 1491294 and 1491301: resource leaks.
diff --git a/src/ssl_manager.c b/src/ssl_manager.c
index 67dc5e851..e8d3833c3 100644
--- a/src/ssl_manager.c
+++ b/src/ssl_manager.c
@@ -346,6 +346,7 @@ static void ssl_manager_load_certs (void)
debug_print("couldn't open dir '%s': %s (%d)\n", path,
error->message, error->code);
g_error_free(error);
+ g_free(path);
return;
}
@@ -366,11 +367,13 @@ static void ssl_manager_load_certs (void)
server, port, cert);
}
}
-
+ }
+ if (server)
g_free(server);
+ if (port)
g_free(port);
+ if (fp)
g_free(fp);
- }
row++;
}
g_dir_close(dir);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list