From 5d3be932404680c053da66201f1e67af9a73f4d6 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 24 Apr 2007 06:49:30 +0000 Subject: fix memory leak (bakul shah) --- src/libsunrpc/udp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/libsunrpc/udp.c b/src/libsunrpc/udp.c index 2e107e65..4a300030 100644 --- a/src/libsunrpc/udp.c +++ b/src/libsunrpc/udp.c @@ -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); } } -- cgit v1.2.3