diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-02 17:47:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-10-02 17:47:46 +0100 |
commit | 3b92c509518cf97da58bde92231f8745ad07c8d0 (patch) | |
tree | 953513bee00bdc4fead444d373b8bfd3e3f50063 | |
parent | 8c729c2b12ead68bcf11a3adfa6e465b0fae884f (diff) | |
download | rspamd-3b92c509518cf97da58bde92231f8745ad07c8d0.tar.gz rspamd-3b92c509518cf97da58bde92231f8745ad07c8d0.zip |
[Minor] Try to fix use after free
-rw-r--r-- | src/rspamd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 95cc2bd6b..8480f6c48 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -1060,8 +1060,6 @@ rspamd_cld_handler (EV_P_ ev_child *w, struct rspamd_main *rspamd_main, cmd.cmd.child_change.additional = w->rstatus; rspamd_control_broadcast_srv_cmd (rspamd_main, &cmd, wrk->pid); - REF_RELEASE (wrk->cf); - if (wrk->finish_actions) { g_ptr_array_free (wrk->finish_actions, TRUE); } @@ -1083,6 +1081,7 @@ rspamd_cld_handler (EV_P_ ev_child *w, struct rspamd_main *rspamd_main, wrk->pid); } + REF_RELEASE (wrk->cf); g_free (wrk); } |