mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 06:26:37 +02:00
...
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
|
||||
/* l_commands.c/commands.so is a special case so we have to do this manually :p */
|
||||
#ifdef DYNAMIC_LINKING
|
||||
char Mod_Version[] = BASE_VERSION PATCH1 PATCH2 PATCH3 PATCH4 PATCH5 PATCH6 PATCH7 PATCH8 PATCH9;
|
||||
DLLFUNC char Mod_Version[] = BASE_VERSION PATCH1 PATCH2 PATCH3 PATCH4 PATCH5 PATCH6 PATCH7 PATCH8 PATCH9;
|
||||
#endif
|
||||
|
||||
extern ModuleHeader m_svsnoop_Header;
|
||||
|
||||
+3
-1
@@ -6639,7 +6639,7 @@ int _conf_loadmodule(ConfigFile *conf, ConfigEntry *ce)
|
||||
FindClose(hFind);
|
||||
return -1;
|
||||
}
|
||||
/* TODO FIX MEM LEAK */
|
||||
|
||||
if (cPath) {
|
||||
path = MyMalloc(strlen(cPath) + strlen(FindData.cFileName)+1);
|
||||
strcpy(path,cPath);
|
||||
@@ -6648,6 +6648,7 @@ int _conf_loadmodule(ConfigFile *conf, ConfigEntry *ce)
|
||||
config_status("%s:%i: loadmodule %s: failed to load: %s",
|
||||
ce->ce_fileptr->cf_filename, ce->ce_varlinenum,
|
||||
FindData.cFileName, ret);
|
||||
free(path);
|
||||
return -1;
|
||||
}
|
||||
free(path);
|
||||
@@ -6671,6 +6672,7 @@ int _conf_loadmodule(ConfigFile *conf, ConfigEntry *ce)
|
||||
config_status("%s:%i: loadmodule %s: failed to load: %s",
|
||||
ce->ce_fileptr->cf_filename, ce->ce_varlinenum,
|
||||
FindData.cFileName, ret);
|
||||
free(path);
|
||||
return -1;
|
||||
}
|
||||
free(path);
|
||||
|
||||
Reference in New Issue
Block a user