- still one memory leak and segmentation fault