diff options
author | jkh <jkh@FreeBSD.org> | 1996-12-12 08:33:38 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-12-12 08:33:38 +0000 |
commit | 61be8f66cf7d37967637bc2fac3191f514c220de (patch) | |
tree | e55bd7f41e2d91b60c93866ae2102986a547ec2d /usr.sbin/sysinstall/dist.c | |
parent | 29d7f1c31842286de505e626253394a7df40547d (diff) | |
download | FreeBSD-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/dist.c')
-rw-r--r-- | usr.sbin/sysinstall/dist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/dist.c b/usr.sbin/sysinstall/dist.c index b2f60a0..9fde44e 100644 --- a/usr.sbin/sysinstall/dist.c +++ b/usr.sbin/sysinstall/dist.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: dist.c,v 1.81 1996/12/11 09:34:57 jkh Exp $ + * $Id: dist.c,v 1.82 1996/12/11 18:23:17 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -389,7 +389,7 @@ distExtract(char *parent, Distribution *me) if (fp > 0) { if (isDebug()) msgDebug("Parsing attributes file for distribution %s\n", dist); - dist_attr = safe_malloc(sizeof(Attribs) * MAX_ATTRIBS); + dist_attr = alloca(sizeof(Attribs) * MAX_ATTRIBS); if (DITEM_STATUS(attr_parse(dist_attr, fp)) == DITEM_FAILURE) msgConfirm("Cannot parse information file for the %s distribution!\n" "Please verify that your media is valid and try again.", dist); @@ -400,7 +400,6 @@ distExtract(char *parent, Distribution *me) if (tmp) numchunks = strtol(tmp, 0, 0); } - attr_free(dist_attr); fclose(fp); if (!numchunks) continue; |