loader: Remove useless TestFree() macro

This commit is contained in:
Adam Jackson 2009-07-16 13:40:48 -04:00
parent 087745b809
commit 06a2784232

View File

@ -68,8 +68,6 @@
#include <dirent.h> #include <dirent.h>
#include <limits.h> #include <limits.h>
#define TestFree(a) if (a) { xfree (a); a = NULL; }
typedef struct _pattern { typedef struct _pattern {
const char *pattern; const char *pattern;
regex_t rex; regex_t rex;
@ -1020,9 +1018,9 @@ doLoadModule(const char *module, const char *path, const char **subdirlist,
LoadModule_exit: LoadModule_exit:
FreePathList(pathlist); FreePathList(pathlist);
FreePatterns(patterns); FreePatterns(patterns);
TestFree(found); xfree(found);
TestFree(name); xfree(name);
TestFree(p); xfree(p);
return ret; return ret;
} }
@ -1098,7 +1096,7 @@ UnloadModuleOrDriver(ModuleDescPtr mod)
UnloadModuleOrDriver(mod->child); UnloadModuleOrDriver(mod->child);
if (mod->sib) if (mod->sib)
UnloadModuleOrDriver(mod->sib); UnloadModuleOrDriver(mod->sib);
TestFree(mod->name); xfree(mod->name);
xfree(mod); xfree(mod);
} }
@ -1121,7 +1119,7 @@ UnloadSubModule(pointer _mod)
if (mod->child) if (mod->child)
UnloadModuleOrDriver(mod->child); UnloadModuleOrDriver(mod->child);
TestFree(mod->name); xfree(mod->name);
xfree(mod); xfree(mod);
} }