summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2014-02-16 00:04:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2014-02-16 00:04:33 +0000
commit2cb17ad03f14e8f0070fcf558bbd3992ceafa0c4 (patch)
treef3a4fe17a480865558cfcbd1c342a0443c2623a0 /sbin
parent09ec79385a297c32750027541bde97b49b818c3f (diff)
Further tweak to mpfree(). Don't bother setting about-to-be-freed
memory to NULL.
Diffstat (limited to 'sbin')
-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);
}