summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2014-02-16 00:04:32 +0000
committerkrw <krw@openbsd.org>2014-02-16 00:04:32 +0000
commit5dbcc055408f6887ce0b7fac656f55d5ff7cdb52 (patch)
tree6e72060b4ea751f0f1b72050010e20db25e6b352
parentsay more explicitly where the .Er values show up, and fix the .Sh title; (diff)
downloadwireguard-openbsd-5dbcc055408f6887ce0b7fac656f55d5ff7cdb52.tar.xz
wireguard-openbsd-5dbcc055408f6887ce0b7fac656f55d5ff7cdb52.zip
Further tweak to mpfree(). Don't bother setting about-to-be-freed
memory to NULL.
-rw-r--r--sbin/disklabel/editor.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index 3a5eb677611..1ab3f7f9f59 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.280 2014/02/15 02:39:38 krw Exp $ */
+/* $OpenBSD: editor.c,v 1.281 2014/02/16 00:04:32 krw Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -1905,10 +1905,8 @@ mpfree(char **mp)
if (mp == NULL)
return;
- for (part == 0; part < MAXPARTITIONS; part++) {
+ for (part == 0; part < MAXPARTITIONS; part++)
free(mp[part]);
- mp[part] = NULL;
- }
free(mp);
}