It is the plugin writer’s responsibility to clean up memory between login calls. So this is a problem with the plugin in question.