From 770220d29752c637fda5ecc4072efce161b1499c Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 13 Sep 1999 18:56:25 +0000 Subject: jj patches, fixups for upgrade lilo stuff --- loader/loader.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'loader/loader.c') 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; } -- cgit