test: fix memory leak in test-getsockname.c
This commit is contained in:
parent
f89986b153
commit
5135cfc45b
@ -238,9 +238,9 @@ static void udp_recv(uv_udp_t* handle,
|
||||
int r;
|
||||
|
||||
ASSERT(nread >= 0);
|
||||
free(buf.base);
|
||||
|
||||
if (nread == 0) {
|
||||
free(buf.base);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user