summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/python/weechat-python.c
diff options
context:
space:
mode:
authorEmmanuel Bouthenot <kolter@openics.org>2007-02-28 22:59:47 +0000
committerEmmanuel Bouthenot <kolter@openics.org>2007-02-28 22:59:47 +0000
commit47db86b66a6714943bd0757320f06d00520451a8 (patch)
tree55fa7655284d65e2ba27a29b01a557dcfa8c4be3 /src/plugins/scripts/python/weechat-python.c
parent2ca6c6a3f14ce256c9a8ffa16a158c96c6ed666f (diff)
downloadweechat-47db86b66a6714943bd0757320f06d00520451a8.zip
fix some memory leaks in perl plugin/script
Diffstat (limited to 'src/plugins/scripts/python/weechat-python.c')
-rw-r--r--src/plugins/scripts/python/weechat-python.c4
1 files changed, 2 insertions, 2 deletions
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);