test: fix memory leak in test-getsockname.c

This commit is contained in:
Ben Noordhuis 2012-10-02 23:45:27 +02:00
parent f89986b153
commit 5135cfc45b

View File

@ -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;
}