Memory deallocation in bturl