1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

tests: fix memory leak in tests launcher

(cherry picked from commit bc34c3cfc2)
This commit is contained in:
Sébastien Helleu
2014-08-20 22:22:06 +02:00
parent ffca6c3bf0
commit 82eb8aef08
2 changed files with 9 additions and 2 deletions
+6
View File
@@ -13,6 +13,12 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
(file 'ReleaseNotes.asciidoc' in sources).
== Version 1.0.1 (under dev)
=== Bugs fixed
* tests: fix memory leak in tests launcher
== Version 1.0 (2014-08-15)
=== New features
+3 -2
View File
@@ -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;
}