aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-24 10:12:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-24 10:12:25 +0100
commitc94329b9d2137e1150cb992aedfd99a516613f7e (patch)
treedcc999bbc9f040c3fb9ab839571d22dc3f45d29c /src/libutil/addr.c
parent41d939a6877525629d7e8b82504c5d67d61d7633 (diff)
downloadrspamd-c94329b9d2137e1150cb992aedfd99a516613f7e.tar.gz
rspamd-c94329b9d2137e1150cb992aedfd99a516613f7e.zip
[Fix] Fix memory leak when accepting from unix sockets
Diffstat (limited to 'src/libutil/addr.c')
-rw-r--r--src/libutil/addr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c
index 1687c80bd..ee70a90f4 100644
--- a/src/libutil/addr.c
+++ b/src/libutil/addr.c
@@ -287,8 +287,6 @@ rspamd_accept_from_socket (gint sock, rspamd_inet_addr_t **target,
addr->slen = len;
if (addr->af == AF_UNIX) {
- addr->u.un = g_slice_alloc0 (sizeof (*addr->u.un));
- /* Get name from the listening socket */
len = sizeof (su);
if (getsockname (sock, &su.sa, &len) != -1) {