aboutsummaryrefslogtreecommitdiffstats
path: root/lib/client/librspamdclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/client/librspamdclient.c')
-rw-r--r--lib/client/librspamdclient.c8
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);
+ }
}
/*