summaryrefslogtreecommitdiff
path: root/src/plugins/charset
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-12-15 22:53:51 +0100
committerSébastien Helleu <flashcode@flashtux.org>2023-12-15 22:53:51 +0100
commit75dc8b9d6c2c2f816ecbeffa4d4b048ebc2d5f58 (patch)
tree0ef749137348dca1ee0acd2fdd07184b2cf835f8 /src/plugins/charset
parent07fbd309487b7de977e5798e67e70de1bd2fed8a (diff)
downloadweechat-75dc8b9d6c2c2f816ecbeffa4d4b048ebc2d5f58.zip
core: fix crash on plugin reload when using musl libs (closes #2052)
Diffstat (limited to 'src/plugins/charset')
-rw-r--r--src/plugins/charset/charset.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/charset/charset.c b/src/plugins/charset/charset.c
index fb3e3a110..543390f2e 100644
--- a/src/plugins/charset/charset.c
+++ b/src/plugins/charset/charset.c
@@ -639,11 +639,18 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
charset_config_write ();
weechat_config_free (charset_config_file);
+ charset_config_file = NULL;
if (charset_terminal)
+ {
free (charset_terminal);
+ charset_terminal = NULL;
+ }
if (charset_internal)
+ {
free (charset_internal);
+ charset_internal = NULL;
+ }
return WEECHAT_RC_OK;
}