From: Arran Cudbard-Bell Date: Tue, 5 Nov 2019 16:10:57 +0000 (-0600) Subject: Explicitly free more things X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf53f5405681bbc11dbae395a64781f49b6557bb;p=thirdparty%2Ffreeradius-server.git Explicitly free more things --- diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index f069a02f5b3..000c0f75e02 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -2337,7 +2337,8 @@ int main(int argc, char *argv[]) * memory, so we get clean talloc reports. */ cleanup: - if (dl_modules) talloc_free(dl_modules); + talloc_free(dl_modules); + talloc_free(dl_loader); fr_dict_free(&dict); unlang_free(); xlat_free(); @@ -2354,10 +2355,10 @@ cleanup: fr_strerror_free(); /* - * Explicitly free children to make - * memory errors on exit less confusing. + * Explicitly free the autofree context + * to make errors less confusing. */ - talloc_free_children(autofree); + talloc_free(autofree); return ret; }