From 259e7280fda253a7d4d1b6e11357659ce54adafb Mon Sep 17 00:00:00 2001 From: olszomal Date: Mon, 6 Nov 2023 14:58:03 +0100 Subject: [PATCH] Fix double free --- helpers.c | 1 - 1 file changed, 1 deletion(-) diff --git a/helpers.c b/helpers.c index 980e5524..42569692 100644 --- a/helpers.c +++ b/helpers.c @@ -305,7 +305,6 @@ int sign_spc_indirect_data_content(PKCS7 *p7, BIO *hash, FILE_FORMAT_CTX *ctx) OPENSSL_free(buf); if (!PKCS7_set_content(p7, td7)) { printf("PKCS7_set_content failed\n"); - OPENSSL_free(buf); PKCS7_free(td7); return 0; /* FAILED */ }