avcodec/snow: fix null pointer dereference in cleanup after allocation failure