mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
api: remove check of NULL pointers before calling free() (issue #865)
This commit is contained in:
@@ -1121,8 +1121,7 @@ plugin_api_info_totp_generate_cb (const void *pointer, void *data,
|
||||
error:
|
||||
if (argv)
|
||||
string_free_split (argv);
|
||||
if (totp)
|
||||
free (totp);
|
||||
free (totp);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user