looks like we should somehow free the memory in this case