aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libsunrpc/udp.c3
1 files changed, 1 insertions, 2 deletions
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);
}
}