diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-18 12:29:57 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-18 12:29:57 +0100 |
commit | 4041c2d64024f27488461e03fcd587dfbb34c4b0 (patch) | |
tree | 9af52fdbc4789fc8f35f164a414431ca37710b43 /src/libstat | |
parent | 1589bd19ff7c841203c548de2c5897e0f0f22c6d (diff) | |
download | rspamd-4041c2d64024f27488461e03fcd587dfbb34c4b0.tar.gz rspamd-4041c2d64024f27488461e03fcd587dfbb34c4b0.zip |
[Minor] Plug some leaks on error paths
Found by: coverity scan
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/stat_process.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 13083986f..2c77942b6 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -1213,6 +1213,9 @@ rspamd_stat_statistics (struct rspamd_task *task, if (target) { *target = res; } + else { + ucl_object_unref (res); + } return RSPAMD_STAT_PROCESS_OK; } |