1
0
Fork 0

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
1 changed files with 4 additions and 0 deletions

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("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