Commit c4a150c2 authored by Richard Levitte's avatar Richard Levitte
Browse files

Supported REF_PRINT with specified reference counter

parent a3c5420b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -421,7 +421,7 @@ int ENGINE_free(ENGINE *e)
		}
	i = CRYPTO_add(&e->struct_ref,-1,CRYPTO_LOCK_ENGINE);
#ifdef REF_PRINT
	REF_PRINT("ENGINE",e);
	REF_PRINT2("ENGINE",e,struct_ref);
#endif
	if (i > 0) return 1;
#ifdef REF_CHECK
+3 −1
Original line number Diff line number Diff line
@@ -73,7 +73,9 @@ extern "C" {
/* Used to checking reference counts, most while doing perl5 stuff :-) */
#ifdef 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

#ifndef DEVRANDOM