Plug memory leaks in RTSP