1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +02:00

Fixed memory leak in /charset command

This commit is contained in:
Sebastien Helleu
2006-12-11 08:32:21 +00:00
parent 59158c48d3
commit 8c1c01e58e
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -590,7 +590,9 @@ weechat_charset_cmd (t_weechat_plugin *plugin,
}
break;
}
if (argv)
plugin->free_exploded_string (plugin, argv);
if (server)
free (server);
if (channel)
@@ -590,7 +590,9 @@ weechat_charset_cmd (t_weechat_plugin *plugin,
}
break;
}
if (argv)
plugin->free_exploded_string (plugin, argv);
if (server)
free (server);
if (channel)