about summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-06 17:50:29 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-06 17:50:29 +0200
commit6776e3964491f18dac11f7964f12c26190bf971a (patch)
treed70ff5229b5aa3f163073ea34417f8d305021dd2 /tests
parentd2a087145cc9caf36aca041fca189760e70cc369 (diff)
downloadprofani-tty-6776e3964491f18dac11f7964f12c26190bf971a.tar.gz
Fix memleak in test_parser unittest
Regards https://github.com/profanity-im/profanity/issues/1019
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unittests/test_parser.c b/tests/unittests/test_parser.c
index 695c3cf4..fed53c1e 100644
--- a/tests/unittests/test_parser.c
+++ b/tests/unittests/test_parser.c
@@ -385,6 +385,8 @@ parse_cmd_with_second_and_third_arg_quoted_0_min_3_max(void **state)
     assert_string_equal("add", args[0]);
     assert_string_equal("The Group", args[1]);
     assert_string_equal("The User", args[2]);
+
+    g_strfreev(args);
 }
 
 void