1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-26 04:46:37 +02:00

script: remove check of NULL pointers before calling free() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-24 23:51:02 +02:00
parent f79153ace7
commit 3973258628
4 changed files with 32 additions and 64 deletions
+1 -2
View File
@@ -227,8 +227,7 @@ script_completion_scripts_files_cb (const void *pointer, void *data,
free (directory);
}
if (weechat_data_dir)
free (weechat_data_dir);
free (weechat_data_dir);
return WEECHAT_RC_OK;
}