diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-15 15:08:31 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-08-15 15:08:31 +0200 |
commit | bc34c3cfc2e89d94648f5cc782becefa608ff007 (patch) | |
tree | 8c2b544773419981a069b4a9e10297b3aaccd54a | |
parent | 23f91ea821ed07a36be7930cb8890258b8bba5aa (diff) | |
download | weechat-bc34c3cfc2e89d94648f5cc782becefa608ff007.zip |
tests: fix memory leak in tests launcher
-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; } |