diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-05-18 23:01:57 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-05-18 23:01:57 +0200 |
commit | 26d972dd57fe7dd03129f76b89c4962a43ea429d (patch) | |
tree | 4238b1ad2503bd89f1a5d6c8244f56ca351d39ad /src/plugins | |
parent | 4aeed262f8ddf9d445e9896726783456744f8a84 (diff) | |
download | weechat-26d972dd57fe7dd03129f76b89c4962a43ea429d.zip |
script: fix memory leak in case of invalid XML content in list of scripts
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/script/script-repo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c index 95c8c7524..b2823c0a6 100644 --- a/src/plugins/script/script-repo.c +++ b/src/plugins/script/script-repo.c @@ -1411,6 +1411,8 @@ script_repo_file_read (int quiet) SCRIPT_PLUGIN_NAME); } + if (script) + script_repo_free (script); if (locale) free (locale); if (locale_language) |