Permalink
Browse files

Fix crash due to bad decrement in API_connect

  • Loading branch information...
1 parent 9914d81 commit b33508abf822071c96da62318ee2a1d882b732b4 Bobby Beckmann committed Apr 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/umemcache.cpp
View
@@ -151,7 +151,9 @@ int API_connect(SOCKETDESC *desc, const char *address, int port)
PyObject *res = PyObject_CallMethodObjArgs(client->sock, method, args, NULL);
PRINTMARK();
- Py_DECREF(PyTuple_GET_ITEM(args, 1));
+
+ //PyTuple_SET_ITEM doesn't increment ref counter
+ //Py_DECREF(PyTuple_GET_ITEM(args, 1));
Py_DECREF(args);
Py_DECREF(method);

0 comments on commit b33508a

Please sign in to comment.