|
@@ -55,6 +55,8 @@ void *module_alloc(unsigned long size)
|
|
|
/* Free memory returned from module_alloc */
|
|
|
void module_free(struct module *mod, void *module_region)
|
|
|
{
|
|
|
+ vfree(mod->arch.syminfo);
|
|
|
+ mod->arch.syminfo = NULL;
|
|
|
vfree(module_region);
|
|
|
}
|
|
|
|
|
@@ -402,6 +404,7 @@ int module_finalize(const Elf_Ehdr *hdr,
|
|
|
struct module *me)
|
|
|
{
|
|
|
vfree(me->arch.syminfo);
|
|
|
+ me->arch.syminfo = NULL;
|
|
|
return module_bug_finalize(hdr, sechdrs, me);
|
|
|
}
|
|
|
|