fix very small memory leaks