[Commits] [SCM] claws branch, master, updated. 3.14.1-151-g9fc2c3a

wwp at claws-mail.org wwp at claws-mail.org
Thu Jan 19 14:26:16 CET 2017


The branch, master has been updated
       via  9fc2c3acb34df62339ea9daa8fe4eb569a1b8f7f (commit)
      from  e5d028a1f543a4579683a7832419f635896b1417 (commit)

Summary of changes:
 src/plugins/clamd/libclamd/clamd-plugin.c |    1 +
 1 file changed, 1 insertion(+)


- Log -----------------------------------------------------------------
commit 9fc2c3acb34df62339ea9daa8fe4eb569a1b8f7f
Author: wwp <wwp at free.fr>
Date:   Thu Jan 19 14:26:06 2017 +0100

    Fix a memory leak.

diff --git a/src/plugins/clamd/libclamd/clamd-plugin.c b/src/plugins/clamd/libclamd/clamd-plugin.c
index 8152d1d..65b8393 100644
--- a/src/plugins/clamd/libclamd/clamd-plugin.c
+++ b/src/plugins/clamd/libclamd/clamd-plugin.c
@@ -536,6 +536,7 @@ Clamd_Stat clamd_verify_email(const gchar* path, response* result) {
 		debug_print("command: %s\n", command);
 		if (write(sock, command, strlen(command)) == -1) {
 			debug_print("no connection (socket write)\n");
+			g_free(command);
 			return NO_CONNECTION;
 		}
 		g_free(command);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list