crypto/openssl: remove useless check before freeing