diff options
author | 2005-11-12 02:23:11 +0000 | |
---|---|---|
committer | 2005-11-12 02:23:11 +0000 | |
commit | 3f7c904c53ed7fc71f7974355c717af965b03c5e (patch) | |
tree | 89aa2a350d42115d209e46cd2e8d19b5d75ebf31 | |
parent | spacing (diff) | |
download | wireguard-openbsd-3f7c904c53ed7fc71f7974355c717af965b03c5e.tar.xz wireguard-openbsd-3f7c904c53ed7fc71f7974355c717af965b03c5e.zip |
memory leak; ok cloder
-rw-r--r-- | sbin/sysctl/sysctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 6343938ce95..0d6f2ff130d 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.129 2005/10/23 13:53:09 kettenis Exp $ */ +/* $OpenBSD: sysctl.c,v 1.130 2005/11/12 02:23:11 deraadt Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95"; #else -static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.129 2005/10/23 13:53:09 kettenis Exp $"; +static const char rcsid[] = "$OpenBSD: sysctl.c,v 1.130 2005/11/12 02:23:11 deraadt Exp $"; #endif #endif /* not lint */ @@ -1799,6 +1799,7 @@ sysctl_chipset(char *string, char **bufpp, int mib[], int flags, int *typep) return (-1); p[len] = '\0'; printf("%s\n", p); + free(p); break; } return (-1); |