There is no need to initialise neither *freeptr, as it is initialised
already, nor ret, as NULL can be simply returned instead.
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28059)
*freeptr = NULL;
#if defined(OPENSSL_SMALL_FOOTPRINT)
- ret = *freeptr = NULL;
- return ret;
+ return NULL;
#endif
/* Allow non-malloc() allocations as long as no malloc_impl is provided. */