Fix some memory leaks in GetRevAvailableHandlers