From bc0459611ef65a529cbab2cb293ca63c522b9607 Mon Sep 17 00:00:00 2001 From: Can Erkin Acar Date: Tue, 4 May 2004 18:14:52 +0000 Subject: Fix memory leak, ok henning@ --- sbin/dhclient/privsep.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sbin/dhclient/privsep.c') 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 +} -- cgit v1.2.3