summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crypto/pem/pem_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/pem/pem_lib.c b/crypto/pem/pem_lib.c
index 4035ac64e6..f7a1bd8302 100644
--- a/crypto/pem/pem_lib.c
+++ b/crypto/pem/pem_lib.c
@@ -995,7 +995,9 @@ int PEM_read_bio_ex(BIO *bp, char **name_out, char **header,
out_free:
PEM_FREE(*header, flags, 0);
+ *header = NULL;
PEM_FREE(*data, flags, 0);
+ *data = NULL;
end:
EVP_ENCODE_CTX_free(ctx);
PEM_FREE(name, flags, 0);