Actions
Bug #1774
closedlighttpd memory leak on duplicated request header
ASK QUESTIONS IN Forums:
Description
http_request_parse function of request.c just return 0 without free previous allocated data_string when duplicated request header found.
it causes memory leak
Files
Updated by stbuehler about 16 years ago
- Status changed from New to Fixed
- Resolution set to fixed
Good catch! fixed in r2305
Used
array_insert_unique(con->request.headers, (data_unset *)ds);
instead of
ds->free((data_unset*)ds);
to reuse memory and save us the malloc/free calls.
Actions
Also available in: Atom