summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-09-15 19:22:56 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-09-15 19:22:56 +0000
commit3d0c3a81e5316a892e584ab674ac0aa7b45a24eb (patch)
tree553551d195078ba841031aab34fe2e51bc016299
parent078fd8953f1ccce51c0026d3be83e90002feeb5c (diff)
need buf_free() to free buf, free() is not good enough
-rw-r--r--usr.sbin/ntpd/imsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/imsg.c b/usr.sbin/ntpd/imsg.c
index ef3fd58e906..361411335ad 100644
--- a/usr.sbin/ntpd/imsg.c
+++ b/usr.sbin/ntpd/imsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imsg.c,v 1.2 2004/09/15 19:21:25 henning Exp $ */
+/* $OpenBSD: imsg.c,v 1.3 2004/09/15 19:22:55 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -102,7 +102,7 @@ imsg_compose(struct imsgbuf *ibuf, int type, u_int32_t peerid, pid_t pid,
return (-1);
if (imsg_add(wbuf, data, datalen) == -1) {
- free(wbuf);
+ buf_free(wbuf);
return (-1);
}