mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
plugins: remove check of NULL pointers before calling weechat_hashtable_free() (issue #865)
This commit is contained in:
@@ -1597,8 +1597,7 @@ fset_buffer_open ()
|
||||
&fset_buffer_input_cb, NULL, NULL,
|
||||
&fset_buffer_close_cb, NULL, NULL);
|
||||
|
||||
if (buffer_props)
|
||||
weechat_hashtable_free (buffer_props);
|
||||
weechat_hashtable_free (buffer_props);
|
||||
|
||||
if (!fset_buffer)
|
||||
return;
|
||||
|
||||
@@ -559,10 +559,8 @@ fset_command_run_set_cb (const void *pointer, void *data,
|
||||
condition_ok = (result && (strcmp (result, "1") == 0));
|
||||
free (result);
|
||||
}
|
||||
if (eval_extra_vars)
|
||||
weechat_hashtable_free (eval_extra_vars);
|
||||
if (eval_options)
|
||||
weechat_hashtable_free (eval_options);
|
||||
weechat_hashtable_free (eval_extra_vars);
|
||||
weechat_hashtable_free (eval_options);
|
||||
|
||||
/* check condition to trigger the fset buffer */
|
||||
if (condition_ok)
|
||||
|
||||
@@ -1405,10 +1405,8 @@ fset_option_export (const char *filename, int with_help)
|
||||
|
||||
fclose (file);
|
||||
|
||||
if (hashtable_pointers)
|
||||
weechat_hashtable_free (hashtable_pointers);
|
||||
if (hashtable_extra_vars)
|
||||
weechat_hashtable_free (hashtable_extra_vars);
|
||||
weechat_hashtable_free (hashtable_pointers);
|
||||
weechat_hashtable_free (hashtable_extra_vars);
|
||||
free (filename2);
|
||||
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user