diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-12 02:23:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-11-12 02:23:12 +0000 |
commit | 2c8007da4b40d76497f24fc7b90479771a84edb7 (patch) | |
tree | b87de099b3d062c1262d58be7c93f6d30e30ac10 /sbin/sysctl | |
parent | 14fe1418d53d1514482965c54b96f326d7fabe44 (diff) |
memory leak; ok cloder
Diffstat (limited to 'sbin/sysctl')
-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); |