mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
core: remove check of NULL pointers before calling arraylist_free() (issue #865)
This commit is contained in:
@@ -475,10 +475,8 @@ calc_expression (const char *expr)
|
||||
calc_format_result (value, str_result, sizeof (str_result));
|
||||
|
||||
end:
|
||||
if (list_values)
|
||||
arraylist_free (list_values);
|
||||
if (list_ops)
|
||||
arraylist_free (list_ops);
|
||||
arraylist_free (list_values);
|
||||
arraylist_free (list_ops);
|
||||
|
||||
return strdup (str_result);
|
||||
}
|
||||
|
||||
@@ -490,8 +490,7 @@ hook_command_format_args_description (const char *args_description)
|
||||
return string_dyn_free (result, 0);
|
||||
|
||||
error:
|
||||
if (args)
|
||||
arraylist_free (args);
|
||||
arraylist_free (args);
|
||||
if (result)
|
||||
string_dyn_free (result, 1);
|
||||
if (lines)
|
||||
|
||||
Reference in New Issue
Block a user