diff options
Diffstat (limited to 'src/lib/libcrypto/evp/p_lib.c')
| -rw-r--r-- | src/lib/libcrypto/evp/p_lib.c | 11 |
1 files changed, 1 insertions, 10 deletions
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) | |||
| 391 | if (x == NULL) return; | 391 | if (x == NULL) return; |
| 392 | 392 | ||
| 393 | i=CRYPTO_add(&x->references,-1,CRYPTO_LOCK_EVP_PKEY); | 393 | i=CRYPTO_add(&x->references,-1,CRYPTO_LOCK_EVP_PKEY); |
| 394 | #ifdef REF_PRINT | ||
| 395 | REF_PRINT("EVP_PKEY",x); | ||
| 396 | #endif | ||
| 397 | if (i > 0) return; | 394 | if (i > 0) return; |
| 398 | #ifdef REF_CHECK | 395 | |
| 399 | if (i < 0) | ||
| 400 | { | ||
| 401 | fprintf(stderr,"EVP_PKEY_free, bad reference count\n"); | ||
| 402 | abort(); | ||
| 403 | } | ||
| 404 | #endif | ||
| 405 | EVP_PKEY_free_it(x); | 396 | EVP_PKEY_free_it(x); |
| 406 | if (x->attributes) | 397 | if (x->attributes) |
| 407 | sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free); | 398 | sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free); |
