From 5f4d080a0e8eb89385e3020de8bbbd5243abf8dc Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Thu, 17 Apr 2014 21:32:37 +0000 Subject: kill REF_PRINT/REF_CHECK debugging framework noone would use ok miod --- src/lib/libcrypto/evp/p_lib.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/lib/libcrypto/evp') diff --git a/src/lib/libcrypto/evp/p_lib.c b/src/lib/libcrypto/evp/p_lib.c index 7a9da3487a..5f5f5e328d 100644 --- a/src/lib/libcrypto/evp/p_lib.c +++ b/src/lib/libcrypto/evp/p_lib.c @@ -391,17 +391,8 @@ void EVP_PKEY_free(EVP_PKEY *x) if (x == NULL) return; i=CRYPTO_add(&x->references,-1,CRYPTO_LOCK_EVP_PKEY); -#ifdef REF_PRINT - REF_PRINT("EVP_PKEY",x); -#endif if (i > 0) return; -#ifdef REF_CHECK - if (i < 0) - { - fprintf(stderr,"EVP_PKEY_free, bad reference count\n"); - abort(); - } -#endif + EVP_PKEY_free_it(x); if (x->attributes) sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free); -- cgit v1.2.3-55-g6feb