summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-10-12 03:09:41 +0000
committerErik Troan <ewt@redhat.com>2001-10-12 03:09:41 +0000
commitabd9e6e0ac88773e0424eb93b8adae61cf34dc95 (patch)
treea2905e5454e539f5ef8049a068fdccbbc30a5a90 /loader
parent30f0f2abb730fcdd73e14057fa64ae7c6ab112fe (diff)
downloadanaconda-abd9e6e0ac88773e0424eb93b8adae61cf34dc95.tar.gz
anaconda-abd9e6e0ac88773e0424eb93b8adae61cf34dc95.tar.xz
anaconda-abd9e6e0ac88773e0424eb93b8adae61cf34dc95.zip
don't free paths when drivers fail to load
Diffstat (limited to 'loader')
-rw-r--r--loader/modules.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/loader/modules.c b/loader/modules.c
index ccaa5cbff..b2c4c6c83 100644
--- a/loader/modules.c
+++ b/loader/modules.c
@@ -217,14 +217,6 @@ int mlLoadDeps(moduleDeps * moduleDepListPtr, const char * path) {
return 0;
}
-static void removeExtractedModule(char * path) {
- char * fn = alloca(strlen(path) + 20);
-
- sprintf(fn, "%s/modules.cgz", path);
- unlink(fn);
- rmdir(path);
-}
-
/* this leaks memory if their is a loop in the modules. oh well. */
char ** tsortModules(moduleList modLoaded, moduleDeps ml, char ** args,
int depth, char *** listPtr, int * listSizePtr) {
@@ -383,9 +375,6 @@ static int loadModule(const char * modName, char * path, moduleList modLoaded,
}
modLoaded->mods[modLoaded->numModules++].args = newArgs;
- } else {
- if (path) removeExtractedModule(path);
- free(path);
}
return rc;