attempt to fix a bug spotted by funkybob on irc

This commit is contained in:
Unbit
2015-05-15 06:41:31 +02:00
parent 36ca76a231
commit dd21877dcb
+2
View File
@@ -1670,6 +1670,8 @@ int uwsgi_python_spooler(char *filename, char *buf, uint16_t len, char *body, si
PyDict_SetItemString(spool_dict, "body", value);
Py_DECREF(value);
}
// PyTuple_SetItem steals a reference !!!
Py_INCREF(spool_dict);
PyTuple_SetItem(pyargs, 0, spool_dict);
ret = python_call(spool_func, pyargs, 0, NULL);