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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user