aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-14 13:18:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-14 13:18:07 +0100
commitc2207e714289caf8a0999bbd67d9a4b58b019065 (patch)
tree40ad37386099093ea73c723a0b0d9bd018f09005 /src
parent41f51d1a129340fa8be5539f37ad5462fc6157eb (diff)
downloadrspamd-c2207e714289caf8a0999bbd67d9a4b58b019065.tar.gz
rspamd-c2207e714289caf8a0999bbd67d9a4b58b019065.zip
[Minor] Plug memory leak in saving stats
Diffstat (limited to 'src')
-rw-r--r--src/controller.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c
index 9d39627dc..9e015cb6d 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -3203,6 +3203,7 @@ rspamd_controller_store_saved_stats (struct rspamd_controller_worker_ctx *ctx)
ucl_object_emit_full (top, UCL_EMIT_JSON_COMPACT,
ucl_object_emit_fd_funcs (fd), NULL);
+ ucl_object_unref (top);
rspamd_file_unlock (fd, FALSE);
close (fd);
}