Supported REF_PRINT with specified reference counter
This commit is contained in:
parent
a3c5420b28
commit
c4a150c242
@ -421,7 +421,7 @@ int ENGINE_free(ENGINE *e)
|
|||||||
}
|
}
|
||||||
i = CRYPTO_add(&e->struct_ref,-1,CRYPTO_LOCK_ENGINE);
|
i = CRYPTO_add(&e->struct_ref,-1,CRYPTO_LOCK_ENGINE);
|
||||||
#ifdef REF_PRINT
|
#ifdef REF_PRINT
|
||||||
REF_PRINT("ENGINE",e);
|
REF_PRINT2("ENGINE",e,struct_ref);
|
||||||
#endif
|
#endif
|
||||||
if (i > 0) return 1;
|
if (i > 0) return 1;
|
||||||
#ifdef REF_CHECK
|
#ifdef REF_CHECK
|
||||||
|
4
e_os.h
4
e_os.h
@ -73,7 +73,9 @@ extern "C" {
|
|||||||
/* Used to checking reference counts, most while doing perl5 stuff :-) */
|
/* Used to checking reference counts, most while doing perl5 stuff :-) */
|
||||||
#ifdef REF_PRINT
|
#ifdef REF_PRINT
|
||||||
#undef REF_PRINT
|
#undef REF_PRINT
|
||||||
#define REF_PRINT(a,b) fprintf(stderr,"%08X:%4d:%s\n",(int)b,b->references,a)
|
#undef REF_PRINT2
|
||||||
|
#define REF_PRINT(a,b) REF_PRINT2(a,b,references)
|
||||||
|
#define REF_PRINT2(a,b,r) fprintf(stderr,"%08X:%4d:%s\n",(int)b,b->r,a)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DEVRANDOM
|
#ifndef DEVRANDOM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user