[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-232-gb6808412b
wwp at claws-mail.org
wwp at claws-mail.org
Mon Sep 27 18:04:59 CEST 2021
The branch, gtk3 has been updated
via b6808412b68404055815a4481e9da81a3bef5eb5 (commit)
from b1c1c6d36cb0d6c318b68d4062f76b22d2b9d0ea (commit)
Summary of changes:
src/ssl_manager.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit b6808412b68404055815a4481e9da81a3bef5eb5
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 76c6ba69e..29f115b30 100644
--- a/src/ssl_manager.c
+++ b/src/ssl_manager.c
@@ -347,6 +347,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;
}
@@ -367,11 +368,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