krb5 commit: Fix ASN.1 test memory leak

Greg Hudson <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.cvs
Message-ID <[email protected]>
https://github.com/krb5/krb5/commit/dde43ffc6d0d19ff3fa080d86d4cddfcc152e421
commit dde43ffc6d0d19ff3fa080d86d4cddfcc152e421
Author: Greg Hudson <[email protected]>
Date:   Fri Dec 18 17:06:59 2020 -0500

    Fix ASN.1 test memory leak
    
    Commit d9443a58cd364349b7d764f4e997f3af7d979a87 introduced a leak in
    krb5_decode_test.c with its new decode_fail macro.

 src/tests/asn.1/krb5_decode_test.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/tests/asn.1/krb5_decode_test.c b/src/tests/asn.1/krb5_decode_test.c
index c148471..61d2d59 100644
--- a/src/tests/asn.1/krb5_decode_test.c
+++ b/src/tests/asn.1/krb5_decode_test.c
@@ -104,6 +104,7 @@ int main(argc, argv)
     }                                                                   \
     test(1,typestring);                                                 \
     printf("%s\n",description);                                         \
+    krb5_free_data_contents(test_context, &code);                       \
 } while (0)
 
     /****************************************************************/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.