From: Florian Forster Date: Thu, 16 Jul 2020 09:40:35 +0000 (+0200) Subject: format_json: Free memory allocated in the "metric_family" test. X-Git-Tag: 6.0.0-rc0~144^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cacc24cb7a4c699594152ebfc343fd6a6139895d;p=thirdparty%2Fcollectd.git format_json: Free memory allocated in the "metric_family" test. --- diff --git a/src/utils/format_json/format_json_test.c b/src/utils/format_json/format_json_test.c index 6251ecd25..1923be73d 100644 --- a/src/utils/format_json/format_json_test.c +++ b/src/utils/format_json/format_json_test.c @@ -242,6 +242,8 @@ DEF_TEST(metric_family) { EXPECT_EQ_STR(cases[i].want, buf.ptr); STRBUF_DESTROY(buf); + + metric_family_free(fam); } return 0;