fix memory leak (bakul shah)

This commit is contained in:
rsc 2007-04-24 06:49:30 +00:00
parent 07029cdbbd
commit 5d3be93240

View file

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