]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix ASN.1 test memory leak 1147/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 18 Dec 2020 22:06:59 +0000 (17:06 -0500)
committerGreg Hudson <ghudson@mit.edu>
Wed, 6 Jan 2021 16:21:19 +0000 (11:21 -0500)
Commit d9443a58cd364349b7d764f4e997f3af7d979a87 introduced a leak in
krb5_decode_test.c with its new decode_fail macro.

src/tests/asn.1/krb5_decode_test.c

index c1484715455f2c039f6b858bace8912552cb5e8e..61d2d59358be9fa665321cf6612fd4058186f074 100644 (file)
@@ -104,6 +104,7 @@ int main(argc, argv)
     }                                                                   \
     test(1,typestring);                                                 \
     printf("%s\n",description);                                         \
+    krb5_free_data_contents(test_context, &code);                       \
 } while (0)
 
     /****************************************************************/