summary refs log tree commit diff stats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/python/python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/python/python.c b/plugins/python/python.c
index 912341a8..1be2c7bb 100644
--- a/plugins/python/python.c
+++ b/plugins/python/python.c
@@ -2156,7 +2156,7 @@ Command_PyReload(char *name)
 	if (!plugin) {
 		hexchat_print(ph, "Can't find a python plugin with that name");
 	} else {
-		char *filename = strdup(plugin->filename);
+		char *filename = g_strdup(plugin->filename);
 		Command_PyUnload(filename);
 		Command_PyLoad(filename);
 		/* cppcheck-suppress deallocDealloc */