diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-26 13:04:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-26 13:04:32 +0100 |
commit | 7e8b8d1cbba46acabe7d2883bacf6c2661977d1b (patch) | |
tree | c68281ef4c632d663955f33dfe342e6855c8e7fb /src/libutil/map.c | |
parent | a0069bc1d16440c96c6af94c8d6981903bce39dd (diff) | |
download | rspamd-7e8b8d1cbba46acabe7d2883bacf6c2661977d1b.tar.gz rspamd-7e8b8d1cbba46acabe7d2883bacf6c2661977d1b.zip |
[Minor] Plug more leaks
Diffstat (limited to 'src/libutil/map.c')
-rw-r--r-- | src/libutil/map.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c index 9f43fa253..458d298dd 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -1178,8 +1178,10 @@ rspamd_map_periodic_callback (struct ev_loop *loop, ev_timer *w, int revents) { struct map_periodic_cbdata *cbd = (struct map_periodic_cbdata *)w->data; + MAP_RETAIN (cbd, "periodic"); ev_timer_stop (loop, w); rspamd_map_process_periodic (cbd); + MAP_RELEASE (cbd, "periodic"); } static void |