Browse Source

TT#106101 mem leak fix for 554034eb7e

Change-Id: I9c410211580d8513a203a29f898970a78175d08b
pull/1180/head
Richard Fuchs 5 years ago
committed by Damir Nedžibović
parent
commit
39a25b954d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      daemon/udp_listener.c

+ 3
- 1
daemon/udp_listener.c View File

@ -44,7 +44,7 @@ static void udp_listener_incoming(int fd, void *p, uintptr_t x) {
continue;
if (errno != EWOULDBLOCK && errno != EAGAIN)
ilog(LOG_WARNING, "Error reading from UDP socket");
return;
break;
}
udp_buf->str.s[len] = '\0';
@ -61,6 +61,8 @@ static void udp_listener_incoming(int fd, void *p, uintptr_t x) {
udp_buf = NULL;
}
}
if (udp_buf)
obj_put(udp_buf);
}
static void __ulc_free(void *p) {


Loading…
Cancel
Save