fix two potential memory leaks