aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-09-09 17:12:38 +0200
committerMartin Willi <martin@strongswan.org>2009-09-09 17:16:00 +0200
commit63ee88745a13ce2ac0526ec1cb67309379182bc0 (patch)
treeb7c6b5977a6ef4df86e8a9201e92bc6d7beef316 /src
parent1080a51fd21e7b672fcdd6c11b94b8a0191640fd (diff)
downloadstrongswan-63ee88745a13ce2ac0526ec1cb67309379182bc0.tar.bz2
strongswan-63ee88745a13ce2ac0526ec1cb67309379182bc0.tar.xz
fixed memleak
Diffstat (limited to 'src')
-rw-r--r--src/pki/pki.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pki/pki.c b/src/pki/pki.c
index 589d6f5e9..2410d6944 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;
}