Properly destroy mem_cred object on pki --pkcs7 --help
authorTobias Brunner <tobias@strongswan.org>
Thu, 24 Jan 2013 17:38:29 +0000 (18:38 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 24 Jan 2013 18:13:41 +0000 (19:13 +0100)
src/pki/commands/pkcs7.c

index 3d53ace..9f167d3 100644 (file)
@@ -295,6 +295,7 @@ static int pkcs7()
                switch (command_getopt(&arg))
                {
                        case 'h':
+                               creds->destroy(creds);
                                return command_usage(NULL);
                        case 'i':
                                file = arg;