]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Plug memory leak in saving stats
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 14 Oct 2017 12:18:07 +0000 (13:18 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 14 Oct 2017 12:18:07 +0000 (13:18 +0100)
src/controller.c

index 9d39627dc985d255a4593dd668051300ec9469eb..9e015cb6d1c3b0ecd65ff592ed6b59102cbad2bc 100644 (file)
@@ -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);
 }