[PATCH] Interpreted Range memory leak (3.0 only)

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Thu, 04 Feb 2010 11:58:56 -0700

Prevent memory leaks when interpreting Range requests.

HttpRequest::range field could be set to a new HttpHdrRange object
twice: once in clientInterpretRequestHeaders() and once in
HttpRequest::hdrCacheInit() called from HttpRequest::parseHeader().

HttpRequest::range field could be cleared without destroying
HttpHdrRange object in clientInterpretRequestHeaders().

The range field is essentially a cached value of the parsed Range
header. Managing the cache outside its owner object is a bad idea.

Received on Thu Feb 04 2010 - 18:58:26 MST

This archive was generated by hypermail 2.2.0 : Fri Feb 05 2010 - 12:00:06 MST