fixed memleak
This commit is contained in:
+3
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user