diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-10-06 17:47:13 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-10-06 17:47:13 +0200 |
commit | d2a087145cc9caf36aca041fca189760e70cc369 (patch) | |
tree | f20921e5c36614b5fb9db41ed3d1934473626e9f /tests/unittests | |
parent | 4f11140bb5ad66d211e8b78fe32cd8ecc521d2b9 (diff) | |
download | profani-tty-d2a087145cc9caf36aca041fca189760e70cc369.tar.gz |
Fix memleak in test_callbacks unittest
Regards https://github.com/profanity-im/profanity/issues/1019
Diffstat (limited to 'tests/unittests')
-rw-r--r-- | tests/unittests/test_callbacks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unittests/test_callbacks.c b/tests/unittests/test_callbacks.c index a1a7317e..ec411863 100644 --- a/tests/unittests/test_callbacks.c +++ b/tests/unittests/test_callbacks.c @@ -17,6 +17,7 @@ void returns_no_commands(void **state) assert_true(commands == NULL); callbacks_close(); + g_list_free(commands); } void returns_commands(void **state) @@ -57,6 +58,7 @@ void returns_commands(void **state) assert_true(foundCommand1 && foundCommand2 && foundCommand3); + g_list_free(names); //TODO: why does this make the test fail? //callbacks_close(); } |