Klaus Demo bjoern / a69b25b
Remove unreachable branch and fix segfault Thanks to http://clang-analyzer.llvm.org/ Jonas Haag 6 years ago
1 changed file(s) with 1 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
109109 PyExc_RuntimeError,
110110 "wsgi application returned before start_response was called"
111111 );
112 Py_DECREF(first_chunk);
112 Py_XDECREF(first_chunk);
113113 return false;
114114 }
115115
141141 * booster because less kernel calls means less kernel call overhead. */
142142 PyObject* buf = PyString_FromStringAndSize(NULL, 1024);
143143 Py_ssize_t length = wsgi_getheaders(request, buf);
144 if(length == 0) {
145 Py_DECREF(first_chunk);
146 Py_DECREF(buf);
147 return false;
148 }
149144
150145 if(first_chunk == NULL) {
151146 _PyString_Resize(&buf, length);