From: wwp Date: Thu, 19 Jan 2017 13:26:06 +0000 (+0100) Subject: Fix a memory leak. X-Git-Tag: 3.15.0~100 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=9fc2c3acb34df62339ea9daa8fe4eb569a1b8f7f Fix a memory leak. --- diff --git a/src/plugins/clamd/libclamd/clamd-plugin.c b/src/plugins/clamd/libclamd/clamd-plugin.c index 8152d1dfd..65b8393b5 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);