hevc: make pic_arrays_init() clean up after itself on failure.
hevc fix wrong malloc