diff options
author | 2001-01-21 07:51:38 +0000 | |
---|---|---|
committer | 2001-01-21 07:51:38 +0000 | |
commit | a4e55655cdfe1e2b17b0fdc5f2cc5261117b4f87 (patch) | |
tree | 49aedb048777ed238204ec3b27dcc5231d155f9b | |
parent | map and establish interrupts _after_ chip was initialized (diff) | |
download | wireguard-openbsd-a4e55655cdfe1e2b17b0fdc5f2cc5261117b4f87.tar.xz wireguard-openbsd-a4e55655cdfe1e2b17b0fdc5f2cc5261117b4f87.zip |
avoid memory leak. sync with kame
-rw-r--r-- | usr.sbin/ndp/ndp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c index 8480dfda2f9..902f33aee54 100644 --- a/usr.sbin/ndp/ndp.c +++ b/usr.sbin/ndp/ndp.c @@ -1,5 +1,5 @@ -/* $OpenBSD: ndp.c,v 1.7 2000/10/09 22:10:05 itojun Exp $ */ -/* $KAME: ndp.c,v 1.48 2000/10/09 22:08:21 itojun Exp $ */ +/* $OpenBSD: ndp.c,v 1.8 2001/01/21 07:51:38 itojun Exp $ */ +/* $KAME: ndp.c,v 1.49 2001/01/20 23:45:44 sumikawa Exp $ */ /* * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. @@ -706,6 +706,8 @@ again:; printf("\n"); } + if (buf != NULL) + free(buf); if (repeat) { printf("\n"); |