From 9e6bc99d08e6b0faf9b4c652e06d83b6e92a0985 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sun, 6 Oct 2019 17:59:46 +0200 Subject: Fix two memleaks in test_parser Regards https://github.com/profanity-im/profanity/issues/1019 --- tests/unittests/test_parser.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/unittests/test_parser.c b/tests/unittests/test_parser.c index fed53c1e..e64438a4 100644 --- a/tests/unittests/test_parser.c +++ b/tests/unittests/test_parser.c @@ -357,6 +357,8 @@ parse_cmd_with_third_arg_quoted_0_min_3_max(void **state) assert_string_equal("add", args[0]); assert_string_equal("friends", args[1]); assert_string_equal("The User", args[2]); + + g_strfreev(args); } void @@ -371,6 +373,8 @@ parse_cmd_with_second_arg_quoted_0_min_3_max(void **state) assert_string_equal("add", args[0]); assert_string_equal("The Group", args[1]); assert_string_equal("friend", args[2]); + + g_strfreev(args); } void -- cgit 1.4.1-2-gfad0