summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-26 14:34:07 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-09-06 14:55:00 +0200
commit45efb8442640e4ae557feafb2b6a38e620cad980 (patch)
treec61e70287d4e6ef79570364682d6e5b4e2d8e1bf
parent2bb0b03e6702efa202a6367fce7f406478c1e5cc (diff)
downloadgnutls-45efb8442640e4ae557feafb2b6a38e620cad980.tar.gz
pkcs7 encryption: corrected memory leaks
-rw-r--r--lib/x509/pkcs7-crypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509/pkcs7-crypt.c b/lib/x509/pkcs7-crypt.c
index e2c26d0edc..a4bb551662 100644
--- a/lib/x509/pkcs7-crypt.c
+++ b/lib/x509/pkcs7-crypt.c
@@ -1216,7 +1216,7 @@ write_pbkdf2_params(ASN1_TYPE pasn,
goto error;
}
- return 0;
+ result = 0;
error:
asn1_delete_structure(&pbkdf2_asn);
@@ -1281,7 +1281,7 @@ write_pbes2_enc_params(ASN1_TYPE pasn,
goto error;
}
- return 0;
+ result = 0;
error:
asn1_delete_structure(&pbe_asn);