diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/scripts/lua/weechat-lua.c | 2 | ||||
-rw-r--r-- | src/plugins/scripts/perl/weechat-perl.c | 4 | ||||
-rw-r--r-- | src/plugins/scripts/python/weechat-python.c | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/src/plugins/scripts/lua/weechat-lua.c b/src/plugins/scripts/lua/weechat-lua.c index f9e348103..969e04ff8 100644 --- a/src/plugins/scripts/lua/weechat-lua.c +++ b/src/plugins/scripts/lua/weechat-lua.c @@ -2341,7 +2341,6 @@ weechat_lua_load (t_weechat_plugin *plugin, char *filename) plugin->print_server (plugin, "Lua error: %s", lua_tostring (lua_current_interpreter, -1)); - free (lua_current_script_filename); lua_close (lua_current_interpreter); fclose (fp); return 0; @@ -2355,7 +2354,6 @@ weechat_lua_load (t_weechat_plugin *plugin, char *filename) plugin->print_server (plugin, "Lua error: %s", lua_tostring (lua_current_interpreter, -1)); - free (lua_current_script_filename); lua_close (lua_current_interpreter); fclose (fp); /* if script was registered, removing from list */ diff --git a/src/plugins/scripts/perl/weechat-perl.c b/src/plugins/scripts/perl/weechat-perl.c index b4f49fe5a..7c33c4e8b 100644 --- a/src/plugins/scripts/perl/weechat-perl.c +++ b/src/plugins/scripts/perl/weechat-perl.c @@ -226,7 +226,7 @@ weechat_perl_exec (t_weechat_plugin *plugin, if (ret_value == NULL && mem_err == 1) { plugin->print_server (plugin, - "Python error: unable to alloc memory in function \"%s\"", + "Perl error: unable to alloc memory in function \"%s\"", function); return NULL; } @@ -2290,7 +2290,7 @@ weechat_perl_cmd (t_weechat_plugin *plugin, /* List Perl modifiers */ plugin->print_server (plugin, ""); - plugin->print_server (plugin, "Python modifiers:"); + plugin->print_server (plugin, "Perl modifiers:"); modifier_found = 0; for (ptr_modifier = plugin->modifiers; ptr_modifier; ptr_modifier = ptr_modifier->next_modifier) diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c index d3d649a0e..96806e18c 100644 --- a/src/plugins/scripts/python/weechat-python.c +++ b/src/plugins/scripts/python/weechat-python.c @@ -2061,7 +2061,6 @@ weechat_python_load (t_weechat_plugin *plugin, char *filename) plugin->print_server (plugin, "Python error: unable to parse file \"%s\"", filename); - free (python_current_script_filename); fclose (fp); if (PyErr_Occurred ()) PyErr_Print (); |