summaryrefslogtreecommitdiffstats
path: root/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules.c')
-rw-r--r--modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.c b/modules.c
index 21141031..9082283d 100644
--- a/modules.c
+++ b/modules.c
@@ -461,7 +461,6 @@ Load(uchar *pModName)
}
pModInfo = GetNxt(pModInfo);
}
- free(pModNameDup);
/* now build our load module name */
if(*pModName == '/') {
@@ -485,6 +484,7 @@ Load(uchar *pModName)
/* ... so now add the extension */
strncat((char *) szPath, ".so", sizeof(szPath) - strlen((char*) szPath) - 1);
}
+ free(pModNameDup);
/* complete load path constructed, so ... GO! */