diff options
author | Can Erkin Acar <canacar@cvs.openbsd.org> | 2004-05-04 18:14:52 +0000 |
---|---|---|
committer | Can Erkin Acar <canacar@cvs.openbsd.org> | 2004-05-04 18:14:52 +0000 |
commit | bc0459611ef65a529cbab2cb293ca63c522b9607 (patch) | |
tree | a1757f8ff1814a55a2550189311152a6a63c52e9 /sbin | |
parent | ec0ee59d515737ff4e6bc79b23b56e0e791ab2c6 (diff) |
Fix memory leak, ok henning@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dhclient/privsep.c | 5 |
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 +} |