From 47db86b66a6714943bd0757320f06d00520451a8 Mon Sep 17 00:00:00 2001 From: Emmanuel Bouthenot Date: Wed, 28 Feb 2007 22:59:47 +0000 Subject: fix some memory leaks in perl plugin/script --- src/plugins/scripts/python/weechat-python.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/scripts/python/weechat-python.c') diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c index 3506580e8..7a5d58e4d 100644 --- a/src/plugins/scripts/python/weechat-python.c +++ b/src/plugins/scripts/python/weechat-python.c @@ -1480,7 +1480,7 @@ weechat_python_get_server_info (PyObject *self, PyObject *args) PyDict_SetItem(server_hash_member, key, value); Py_DECREF (key); Py_DECREF (value); - + key = Py_BuildValue("s", "autoreconnect"); value = Py_BuildValue("i", ptr_server->autoreconnect); PyDict_SetItem(server_hash_member, key, value); @@ -1572,7 +1572,7 @@ weechat_python_get_server_info (PyObject *self, PyObject *args) Py_DECREF (value); key = Py_BuildValue("s", "autojoin"); - Py_BuildValue("s", ptr_server->autojoin); + value = Py_BuildValue("s", ptr_server->autojoin); PyDict_SetItem(server_hash_member, key, value); Py_DECREF (key); Py_DECREF (value); -- cgit v1.2.3