Fix a memory leak.
authorwwp <wwp@free.fr>
Thu, 19 Jan 2017 13:26:06 +0000 (14:26 +0100)
committerwwp <wwp@free.fr>
Thu, 19 Jan 2017 13:26:06 +0000 (14:26 +0100)
src/plugins/clamd/libclamd/clamd-plugin.c

index 8152d1d..65b8393 100644 (file)
@@ -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);