summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/main.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-12 08:33:38 +0000
committerjkh <jkh@FreeBSD.org>1996-12-12 08:33:38 +0000
commit61be8f66cf7d37967637bc2fac3191f514c220de (patch)
treee55bd7f41e2d91b60c93866ae2102986a547ec2d /usr.sbin/sysinstall/main.c
parent29d7f1c31842286de505e626253394a7df40547d (diff)
downloadFreeBSD-src-61be8f66cf7d37967637bc2fac3191f514c220de.zip
FreeBSD-src-61be8f66cf7d37967637bc2fac3191f514c220de.tar.gz
Undo one of my memory optimization hacks - it actually made things more
complicated.
Diffstat (limited to 'usr.sbin/sysinstall/main.c')
-rw-r--r--usr.sbin/sysinstall/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/main.c b/usr.sbin/sysinstall/main.c
index 90a4367..c8a9025 100644
--- a/usr.sbin/sysinstall/main.c
+++ b/usr.sbin/sysinstall/main.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated for what's essentially a complete rewrite.
*
- * $Id: main.c,v 1.30 1996/12/11 18:23:17 jkh Exp $
+ * $Id: main.c,v 1.31 1996/12/12 08:23:49 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -119,7 +119,7 @@ main(int argc, char **argv)
FILE *fp;
Attribs *attrs;
- attrs = safe_malloc(sizeof(Attribs) * MAX_ATTRIBS);
+ attrs = alloca(sizeof(Attribs) * MAX_ATTRIBS);
fp = fopen("install.cfg", "r");
if (fp) {
msgNotify("Loading pre-configuration file");
@@ -130,7 +130,6 @@ main(int argc, char **argv)
variable_set2(attrs[i].name, attrs[i].value);
}
fclose(fp);
- attr_free(attrs);
}
#if defined(LOAD_CONFIG_FILE)
@@ -158,7 +157,6 @@ main(int argc, char **argv)
variable_set2(attrs[i].name, attrs[i].value);
}
fclose(fp);
- attr_free(attrs);
}
mediaDevice->shutdown(mediaDevice);
}
OpenPOWER on IntegriCloud