mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 07:16:37 +02:00
core: fix memory leak when trying to add a bar that already exists
This commit is contained in:
@@ -356,6 +356,7 @@ COMMAND_CALLBACK(bar)
|
||||
_("%sBar \"%s\" already exists"),
|
||||
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
|
||||
argv[2]);
|
||||
free (str_type);
|
||||
return WEECHAT_RC_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user