From 57e52f2a633fe7849ac4eebd9f5cbd6f12fba30d Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 6 Oct 2014 19:30:44 -0700 Subject: [PATCH] Fix invariant broken in 5f1374e2. If to_free is not a valid pointer then it should be NULL. Change-Id: I6addb2b8e7aa61d3ba47baaf8d0606d10ff2545d --- crypto/err/err.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/err/err.c b/crypto/err/err.c index 5a79fb87..5a371a5e 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -279,6 +279,7 @@ void ERR_clear_error(void) { } if (state->to_free) { OPENSSL_free(state->to_free); + state->to_free = NULL; } state->top = state->bottom = 0;