[PATCH] Cloned Range memory leak

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Tue, 26 Jan 2010 16:53:30 -0700

Prevent memory leaks when cloning Range requests.

HttpRequest::range field was set to a new HttpHdrRange object twice:
once in HttpRequest::clone() and once in HttpRequest::hdrCacheInit()
called from clone().

Polished HttpReply::clone() to make sure HttpReply::hdrCacheInit()
does not use uninitialized HttpReply::sline field and to prevent
benign double-initialization of HttpReply::keep_alive.

Alex.

Received on Tue Jan 26 2010 - 23:53:16 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 27 2010 - 12:00:07 MST