aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-18 17:51:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-18 17:51:26 +0100
commit2395e17750aa96d37fbf45b355fbc9fcbf6f2491 (patch)
tree93271a7a55a227b42e8a44062ef13c44be23132a /src/controller.c
parent88c07077e25bbd57c441c49cd667678d2492693c (diff)
downloadrspamd-2395e17750aa96d37fbf45b355fbc9fcbf6f2491.tar.gz
rspamd-2395e17750aa96d37fbf45b355fbc9fcbf6f2491.zip
[Minor] Use refcounts for http messages
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c
index 1144441fd..5662409d6 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -925,7 +925,7 @@ rspamd_controller_handle_get_map (struct rspamd_http_connection_entry *conn_ent,
if (!rspamd_http_message_set_body_from_fd (reply, fd)) {
close (fd);
- rspamd_http_message_free (reply);
+ rspamd_http_message_unref (reply);
msg_err_session ("cannot read map %s: %s", bk->uri, strerror (errno));
rspamd_controller_send_error (conn_ent, 500, "500 map read error");
return 0;