diff --git a/org/mozilla/jss/pkcs11/PK11Signature.c b/org/mozilla/jss/pkcs11/PK11Signature.c index c9686d923..113776050 100644 --- a/org/mozilla/jss/pkcs11/PK11Signature.c +++ b/org/mozilla/jss/pkcs11/PK11Signature.c @@ -777,12 +777,12 @@ JSS_PK11_wrapSigContextProxy(JNIEnv *env, void **ctxt, SigContextType type, PRAr PR_ASSERT(type == VFY_CONTEXT); VFY_DestroyContext( (VFYContext*)*ctxt, PR_TRUE /*freeit*/); } - if (*arena != NULL) { + if (arena != NULL) { PORT_FreeArena(*arena, PR_TRUE /* zero */); } } *ctxt = NULL; - if (*arena) { + if (arena != NULL) { *arena = NULL; } return Context;