rtpdec_asf: Check memory allocation and free memory on error