Klaus Demo ~jonashaag/bjoern / e268cdc
Fixed a memory leak. Valgrind ftw Jonas Haag 9 years ago
3 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6868 cd tests && python ~/dev/wsgitest/runner.py
6969
7070 valgrind:
71 valgrind --leak-check=full --show-reachable=yes python tests/hello.py
71 valgrind --leak-check=full --show-reachable=yes python tests/empty.py
7272
7373 callgrind:
7474 valgrind --tool=callgrind python tests/wsgitest-round-robin.py
22 =================
33
44 * ssize_t -> Py_ssize_t
5 * There's a memory leak after ~ 20,000 requests (two `make ab` runs)
65 * wsgi_getheaders: get rid of buf_write (but memcpy is bad for that small strings)
76 * wsgi_iterable_get_next_chunk: refactor
87 * sendfile
4343 assert(request->status->ob_refcnt >= 1);
4444 Py_XDECREF(request->headers);
4545 Py_XDECREF(request->status);
46 Py_DECREF(request->client_addr);
4647 }
4748
4849 /* Parse stuff */