avoid double free on module->data