diff options
-rw-r--r-- | ChangeLog.asciidoc | 6 | ||||
-rw-r--r-- | tests/tests.cpp | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog.asciidoc b/ChangeLog.asciidoc index 1c68d8d15..9ca62b9a5 100644 --- a/ChangeLog.asciidoc +++ b/ChangeLog.asciidoc @@ -13,6 +13,12 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] (file 'ReleaseNotes.asciidoc' in sources). +== Version 1.1 (under dev) + +=== Bugs fixed + +* tests: fix memory leak in tests launcher + == Version 1.0 (2014-08-15) === New features diff --git a/tests/tests.cpp b/tests/tests.cpp index 6b2e37431..94bf8f536 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -149,6 +149,9 @@ main (int argc, char *argv[]) /* init WeeChat */ printf ("------------------------------------------------------------\n"); weechat_init (weechat_argc, weechat_argv, &test_gui_init); + if (weechat_argv) + string_free_split (weechat_argv); + free (args); /* display WeeChat version */ input_data (gui_buffer_search_main (), "/command core version"); @@ -170,7 +173,5 @@ main (int argc, char *argv[]) (rc == 0) ? 32 : 31, /* 32 = green (OK), 31 = red (error) */ (rc == 0) ? "OK" : "ERROR"); - string_free_split (weechat_argv); - return rc; } |