diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-09-18 20:42:09 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-09-18 20:42:09 +0400 |
commit | df07d992fb389fa691e4206fc27593bb96af8630 (patch) | |
tree | a884bea7a40f8e4d06f17780342d2a57e406592f /lib | |
parent | d071dc92a2b0f853309b1c450d739dd4bb69f108 (diff) | |
download | rspamd-df07d992fb389fa691e4206fc27593bb96af8630.tar.gz rspamd-df07d992fb389fa691e4206fc27593bb96af8630.zip |
Fix learning throught restfull interface.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/client/librspamdclient.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/client/librspamdclient.c b/lib/client/librspamdclient.c index b4c6caed5..7a073f410 100644 --- a/lib/client/librspamdclient.c +++ b/lib/client/librspamdclient.c @@ -1523,7 +1523,9 @@ rspamd_free_result (struct rspamd_result *result) g_hash_table_destroy (result->headers); g_hash_table_destroy (result->metrics); - rspamd_free_connection (result->conn); + if (result->conn) { + rspamd_free_connection (result->conn); + } } void @@ -1536,7 +1538,9 @@ rspamd_free_controller_result (struct rspamd_controller_result *result) if (result->data) { g_string_free (result->data, TRUE); } - rspamd_free_connection (result->conn); + if (result->conn) { + rspamd_free_connection (result->conn); + } } /* |