diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-13 18:56:25 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-13 18:56:25 +0000 |
commit | 770220d29752c637fda5ecc4072efce161b1499c (patch) | |
tree | 6a18d86ee6429d60d3c0340e499db8913a75f003 /loader/loader.c | |
parent | 5da684416bce7bae54b566ceee34198dcdc2e8a6 (diff) | |
download | anaconda-770220d29752c637fda5ecc4072efce161b1499c.tar.gz anaconda-770220d29752c637fda5ecc4072efce161b1499c.tar.xz anaconda-770220d29752c637fda5ecc4072efce161b1499c.zip |
jj patches, fixups for upgrade lilo stuff
Diffstat (limited to 'loader/loader.c')
-rw-r--r-- | loader/loader.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/loader/loader.c b/loader/loader.c index 0e8979836..01db8938f 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -599,8 +599,6 @@ static char * mountHardDrive(struct installMethod * method, label = newtLabel(-1, -1, _("Directory holding Red Hat:")); - tmpDir = dir ? strdup(dir) : NULL; - dirEntry = newtEntry(28, 11, dir, 28, &tmpDir, NEWT_ENTRY_SCROLL); entryGrid = newtGridHStacked(NEWT_GRID_COMPONENT, label, @@ -633,8 +631,8 @@ static char * mountHardDrive(struct installMethod * method, if (dir) free(dir); if (tmpDir && *tmpDir) { + /* Protect from form free. */ dir = strdup(tmpDir); - free(tmpDir); } else { dir = NULL; } |