X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fcomp%2Fcomp_lib.c;h=6ae2114496b03b24a18cc4b5f19e69719f16b805;hp=e509f5957b6eed4eeb885e619fc34e6bc6070ad3;hb=fe1128dc2a6e7aae9010cf6595c78245e0eefd46;hpb=74a8acbdfb2c7f398d1ae2fe914cd32b437f6df4 diff --git a/crypto/comp/comp_lib.c b/crypto/comp/comp_lib.c index e509f5957b..6ae2114496 100644 --- a/crypto/comp/comp_lib.c +++ b/crypto/comp/comp_lib.c @@ -12,14 +12,17 @@ #include #include #include +#include #include "comp_lcl.h" COMP_CTX *COMP_CTX_new(COMP_METHOD *meth) { COMP_CTX *ret; - if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) + if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) { + COMPerr(COMP_F_COMP_CTX_NEW, ERR_R_MALLOC_FAILURE); return NULL; + } ret->meth = meth; if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { OPENSSL_free(ret);