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/rspamd_proxy.c | |
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/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 267760c03..a7944eecf 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -2185,7 +2185,7 @@ proxy_accept_socket (EV_P_ ev_io *w, int revents) { struct rspamd_worker *worker = (struct rspamd_worker *)w->data; struct rspamd_proxy_ctx *ctx; - rspamd_inet_addr_t *addr; + rspamd_inet_addr_t *addr = NULL; struct rspamd_proxy_session *session; gint nfd; @@ -2199,6 +2199,7 @@ proxy_accept_socket (EV_P_ ev_io *w, int revents) } /* Check for EAGAIN */ if (nfd == 0) { + rspamd_inet_address_free (addr); return; } |