Plugged two memory leaks in list parsing/shared buffers