summaryrefslogtreecommitdiff
path: root/sbin/dhclient/privsep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dhclient/privsep.c')
-rw-r--r--sbin/dhclient/privsep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/dhclient/privsep.c b/sbin/dhclient/privsep.c
index aa7efddf9db..6cd447ef614 100644
--- a/sbin/dhclient/privsep.c
+++ b/sbin/dhclient/privsep.c
@@ -63,6 +63,9 @@ buf_close(int sock, struct buf *buf)
error("short write: wanted %u got %d bytes", buf->size,
buf->rpos);
+ free(buf->buf);
+ free(buf);
+
return (n);
}
@@ -225,4 +228,4 @@ dispatch_imsg(int fd)
default:
error("received unknown message, code %d", hdr.code);
}
-} \ No newline at end of file
+}