talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 29102bfa04d70747eea3aa7c2a97b1c09d4299e1
parent cb22c1707da6e72655d55cbfbd7b602db959547c
Author: wwp <subscript@free.fr>
Date:   Mon, 27 Sep 2021 18:03:43 +0200

Fix CID 1491200, 1491294 and 1491301: resource leaks.

Diffstat:
Msrc/ssl_manager.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 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);