aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-20 17:41:59 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-01-20 17:41:59 +0000
commitaa29c7e4cbc6c4c904e5bd265ceb3596a85a5d1e (patch)
tree9d321fc85a30f071492006919cbddbb14a02493f /src/client
parent3951e4e858d891993c2d0f3fc317a3b9026269b3 (diff)
downloadrspamd-aa29c7e4cbc6c4c904e5bd265ceb3596a85a5d1e.tar.gz
rspamd-aa29c7e4cbc6c4c904e5bd265ceb3596a85a5d1e.zip
Fix memory leak.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/rspamc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index f3e632113..83a4c378f 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -202,7 +202,7 @@ read_cmd_line (gint *argc, gchar ***argv)
static struct rspamc_command *
check_rspamc_command (const gchar *cmd)
{
- enum rspamc_command_type ct;
+ enum rspamc_command_type ct = 0;
guint i;
if (g_ascii_strcasecmp (cmd, "SYMBOLS") == 0 ||
@@ -525,6 +525,8 @@ rspamc_process_input (struct event_base *ev_base, struct rspamc_command *cmd,
}
conn = rspamd_client_init (ev_base, connectv[0], port, timeout);
+ g_strfreev (connectv);
+
if (conn != NULL) {
rspamd_client_command (conn, cmd->name, attrs, in, rspamc_client_cb, cmd, &err);
}