1a bugfixes; no memory leaks for parent fork