fixed memleak

This commit is contained in:
Martin Willi
2009-09-09 17:16:00 +02:00
parent 1080a51fd2
commit 63ee88745a
+3 -2
View File
@@ -808,7 +808,7 @@ end:
free(serial.ptr); free(serial.ptr);
if (error) if (error)
{ {
fprintf(stderr, "%s\n", error); fprintf(stderr, "%s\n", error);
return 1; return 1;
} }
@@ -980,6 +980,7 @@ static int issue(int argc, char *argv[])
error = "CA private key does not match CA certificate"; error = "CA private key does not match CA certificate";
goto end; goto end;
} }
public->destroy(public);
if (file) if (file)
{ {
@@ -1051,7 +1052,7 @@ end:
free(serial.ptr); free(serial.ptr);
if (error) if (error)
{ {
fprintf(stderr, "%s\n", error); fprintf(stderr, "%s\n", error);
return 1; return 1;
} }