]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
format_json: Free memory allocated in the "metric_family" test.
authorFlorian Forster <octo@google.com>
Thu, 16 Jul 2020 09:40:35 +0000 (11:40 +0200)
committerFlorian Forster <octo@google.com>
Wed, 29 Jul 2020 11:40:54 +0000 (13:40 +0200)
src/utils/format_json/format_json_test.c

index 6251ecd25222a15cd0cee923a73588ae53c9eb3c..1923be73d55b4bafc0937fc18f79b74f57c4a1f4 100644 (file)
@@ -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;