fix memory leak (bakul shah)
This commit is contained in:
parent
07029cdbbd
commit
5d3be93240
1 changed files with 1 additions and 2 deletions
|
|
@ -92,8 +92,7 @@ sunudpwrite(void *v)
|
|||
while((msg = recvp(arg.creply)) != nil){
|
||||
if(udpwrite(arg.fd, &msg->udp, msg->msg.data, msg->msg.count) != msg->msg.count)
|
||||
fprint(2, "udpwrite: %r\n");
|
||||
free(msg->msg.data);
|
||||
free(msg);
|
||||
sunmsgdrop(&msg->msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue