inevity / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
0 stars 0 forks source link

Memory leak in requestAbortBody processing #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
lusca version: LUSCA_HEAD-r14809

In function requestAbortBody (HttpRequest.c), request->body_reader_data is
assigned to NULL before handler(clientReadBody) is called. When function 
clientAbortBody
(client_side_body.c) is eventually called, the ConnStateData saved in
request->body_reader_data is NULL, and the function returns immediately which
results in memory leak(requestUnlink not called).

Original issue reported on code.google.com by gm.jin.w...@gmail.com on 29 Nov 2010 at 8:03