]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
pki: Fixed memory leak in pki --scep
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 28 Aug 2022 09:42:13 +0000 (11:42 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 28 Aug 2022 09:42:13 +0000 (11:42 +0200)
src/pki/commands/scep.c

index f7db744d5a94090eab6478f548d36a7db19d01c1..7554179940a88687409e63650a61ca11fd5bc1cb 100644 (file)
@@ -405,6 +405,7 @@ static int scep()
                {
                        DBG1(DBG_APP, "loading client private key file '%s' failed",
                                                   client_key_file);
+                       x509_signer->destroy(x509_signer);
                        goto err;
                }
        }