From: Martin Willi Date: Wed, 9 Sep 2009 15:12:38 +0000 (+0200) Subject: fixed memleak X-Git-Tag: 4.3.5rc1~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63ee88745a13ce2ac0526ec1cb67309379182bc0;p=thirdparty%2Fstrongswan.git fixed memleak --- diff --git a/src/pki/pki.c b/src/pki/pki.c index 589d6f5e90..2410d69440 100644 --- a/src/pki/pki.c +++ b/src/pki/pki.c @@ -808,7 +808,7 @@ end: free(serial.ptr); if (error) - { + { fprintf(stderr, "%s\n", error); return 1; } @@ -980,6 +980,7 @@ static int issue(int argc, char *argv[]) error = "CA private key does not match CA certificate"; goto end; } + public->destroy(public); if (file) { @@ -1051,7 +1052,7 @@ end: free(serial.ptr); if (error) - { + { fprintf(stderr, "%s\n", error); return 1; }