summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2014-10-10 15:42:28 (GMT)
committerSamuel Lidén Borell <samuel@kodafritt.se>2014-10-10 15:42:28 (GMT)
commit61c557b5daeb093a4365793e845f171692183307 (patch)
tree9ff8da29f4dcad85015c3b43303271c9314f8ec3
parent901774a331aac960def4a3f2b4d64e9dd42a6292 (diff)
downloadfribid-61c557b5daeb093a4365793e845f171692183307.zip
fribid-61c557b5daeb093a4365793e845f171692183307.tar.gz
fribid-61c557b5daeb093a4365793e845f171692183307.tar.bz2
free(origin) also when there's an error
-rw-r--r--client/pkcs12.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/pkcs12.c b/client/pkcs12.c
index af4d4d1..36b6d8a 100644
--- a/client/pkcs12.c
+++ b/client/pkcs12.c
@@ -699,6 +699,7 @@ static TokenError storeCertificates(STACK_OF(X509) *certs,
char *str = rasprintf("file=%s, request=%s", origin, hostname);
certutil_setErrorString(str);
hostname_mismatch = true;
+ free(origin);
continue;
}
free(origin);