aboutsummaryrefslogtreecommitdiffstats
path: root/apps/spkac.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/spkac.c')
-rw-r--r--apps/spkac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/spkac.c b/apps/spkac.c
index b6fc46dfc2..a365406d7a 100644
--- a/apps/spkac.c
+++ b/apps/spkac.c
@@ -130,8 +130,10 @@ int spkac_main(int argc, char **argv)
spkstr = NETSCAPE_SPKI_b64_encode(spki);
out = bio_open_default(outfile, 'w', FORMAT_TEXT);
- if (out == NULL)
+ if (out == NULL) {
+ OPENSSL_free(spkstr);
goto end;
+ }
BIO_printf(out, "SPKAC=%s\n", spkstr);
OPENSSL_free(spkstr);
ret = 0;