hotplug2: fix a memory leak and wrong variables leaking into the fork worker process...