1
0
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:
Sébastien Helleu
2024-08-17 07:58:29 +02:00
parent c8dffad56c
commit f153b7e463
+1
View File
@@ -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;
}
}