summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-09 01:25:58 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-09 01:25:58 +0200
commit447cf8fc1f670f17fe1e439a69af4d47555536e4 (patch)
tree47a6ef0d7544bac07464534ab2b01ce1a6942114 /src
parent20700893c89d35b9b628a086d6465ed2f6a7a5b5 (diff)
downloadlibtasn1-447cf8fc1f670f17fe1e439a69af4d47555536e4.tar.gz
libtasn1-447cf8fc1f670f17fe1e439a69af4d47555536e4.tar.bz2
libtasn1-447cf8fc1f670f17fe1e439a69af4d47555536e4.zip
eliminates few leaks
Diffstat (limited to 'src')
-rw-r--r--src/asn1Decoding.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/asn1Decoding.c b/src/asn1Decoding.c
index 494f14b..c46e43b 100644
--- a/src/asn1Decoding.c
+++ b/src/asn1Decoding.c
@@ -239,6 +239,7 @@ char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
if (asn1_result != ASN1_SUCCESS)
{
printf ("Structure creation: %s\n", asn1_strerror (asn1_result));
+ asn1_delete_structure (&structure);
return asn1_result;
}
@@ -249,6 +250,7 @@ char errorDescription[ASN1_MAX_ERROR_DESCRIPTION_SIZE];
if (asn1_result != ASN1_SUCCESS)
{
printf ("asn1Decoding: %s\n", errorDescription);
+ asn1_delete_structure (&structure);
return asn1_result;
}