zstd: check for OOM when creating {C,D}Ctx
ZSTD creates CCtx and DCtx with malloc() by default, a NULL pointer will be returned on OOM, the callers must check for NULL pointers. Also fixed a typo in the comment. Fixes: https://github.com/greenplum-db/gpdb/issues/9294 Reported-by: shellboy Reviewed-by: NZhenghua Lyu <zlv@pivotal.io>
Showing
想要评论请 注册 或 登录