fixed callable and start_response refcnt

This commit is contained in:
roberto@fedora64
2011-08-16 17:00:15 +02:00
parent 273181daf5
commit 69808c34a8
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -462,6 +462,9 @@ void init_uwsgi_embedded_module() {
exit(1);
}
// just for safety
Py_INCREF(up.embedded_dict);
if (PyDict_SetItemString(up.embedded_dict, "version", PyString_FromString(UWSGI_VERSION))) {
PyErr_Print();
exit(1);