summaryrefslogtreecommitdiff
path: root/sbin/ccdconfig/ccdconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ccdconfig/ccdconfig.c')
-rw-r--r--sbin/ccdconfig/ccdconfig.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/ccdconfig/ccdconfig.c b/sbin/ccdconfig/ccdconfig.c
index 01b64936dbb..a6ca72d91ef 100644
--- a/sbin/ccdconfig/ccdconfig.c
+++ b/sbin/ccdconfig/ccdconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ccdconfig.c,v 1.24 2005/11/12 15:26:23 deraadt Exp $ */
+/* $OpenBSD: ccdconfig.c,v 1.25 2005/11/12 18:47:42 deraadt Exp $ */
/* $NetBSD: ccdconfig.c,v 1.6 1996/05/16 07:11:18 thorpej Exp $ */
/*-
@@ -434,10 +434,8 @@ resolve_ccdname(char *name)
c = name[len - 1];
if (isdigit(c)) {
- if ((rawpart = getrawpartition()) < 0) {
- free(path);
+ if ((rawpart = getrawpartition()) < 0)
return (NULL);
- }
if (asprintf(&path, "/dev/%s%c", name, 'a' + rawpart) == -1)
return (NULL);
} else {