summaryrefslogtreecommitdiffstats
path: root/compat/imsg-buffer.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-04-11 11:51:25 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-04-11 11:51:25 +0100
commitd720a1487bb7b8588a7a830fecc490ca84bf528b (patch)
tree9ee0689b51a6042ba31934279d34d0eef5304e17 /compat/imsg-buffer.c
parent5f662d91db658abbcd46d7a678c0250754be35e3 (diff)
Update imsg*.c from OpenBSD.
Diffstat (limited to 'compat/imsg-buffer.c')
-rw-r--r--compat/imsg-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/imsg-buffer.c b/compat/imsg-buffer.c
index 3576d5f0..a302fa27 100644
--- a/compat/imsg-buffer.c
+++ b/compat/imsg-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg-buffer.c,v 1.9 2017/03/17 14:51:26 deraadt Exp $ */
+/* $OpenBSD: imsg-buffer.c,v 1.10 2017/04/11 09:57:19 reyk Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -182,7 +182,7 @@ ibuf_free(struct ibuf *buf)
{
if (buf == NULL)
return;
- free(buf->buf);
+ freezero(buf->buf, buf->size);
free(buf);
}