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

script: check that script pointer is not NULL in function "script_repo_free"

This commit is contained in:
Sébastien Helleu
2017-03-25 14:08:38 +01:00
parent 9e0d103ff7
commit 97ca653a43
+3
View File
@@ -611,6 +611,9 @@ script_repo_add (struct t_script_repo *script)
void
script_repo_free (struct t_script_repo *script)
{
if (!script)
return;
if (script->name)
free (script->name);
if (script->name_with_extension)