fix memory leak (bakul shah)
This commit is contained in:
parent
07029cdbbd
commit
5d3be93240
@ -92,8 +92,7 @@ sunudpwrite(void *v)
|
|||||||
while((msg = recvp(arg.creply)) != nil){
|
while((msg = recvp(arg.creply)) != nil){
|
||||||
if(udpwrite(arg.fd, &msg->udp, msg->msg.data, msg->msg.count) != msg->msg.count)
|
if(udpwrite(arg.fd, &msg->udp, msg->msg.data, msg->msg.count) != msg->msg.count)
|
||||||
fprint(2, "udpwrite: %r\n");
|
fprint(2, "udpwrite: %r\n");
|
||||||
free(msg->msg.data);
|
sunmsgdrop(&msg->msg);
|
||||||
free(msg);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user