1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-27 20:30:13 -04:00

Fix two memleaks in test_parser

Regards https://github.com/profanity-im/profanity/issues/1019
This commit is contained in:
Michael Vetter 2019-10-06 17:59:46 +02:00
parent 1fabb61b40
commit 9e6bc99d08

View File

@ -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("add", args[0]);
assert_string_equal("friends", args[1]); assert_string_equal("friends", args[1]);
assert_string_equal("The User", args[2]); assert_string_equal("The User", args[2]);
g_strfreev(args);
} }
void 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("add", args[0]);
assert_string_equal("The Group", args[1]); assert_string_equal("The Group", args[1]);
assert_string_equal("friend", args[2]); assert_string_equal("friend", args[2]);
g_strfreev(args);
} }
void void