Fixed tlv_sort memory leaks.