diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-10-06 17:59:46 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-10-06 17:59:46 +0200 |
commit | 9e6bc99d08e6b0faf9b4c652e06d83b6e92a0985 (patch) | |
tree | 7254ee40fe5f1c9a80bd4e07a479a1b51f10fbae /tests | |
parent | 1fabb61b4005f80d6a66dd77654d4711de939cc4 (diff) | |
download | profani-tty-9e6bc99d08e6b0faf9b4c652e06d83b6e92a0985.tar.gz |
Fix two memleaks in test_parser
Regards https://github.com/profanity-im/profanity/issues/1019
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |