--- lib/x509/common.c.orig 2008-07-04 13:59:20.000000000 +0200 +++ lib/x509/common.c 2008-07-04 13:59:13.000000000 +0200 @@ -856,6 +856,9 @@ _gnutls_x509_decode_octet_string (const goto cleanup; } + if (c2) + asn1_delete_structure (&c2); + return 0; cleanup: