httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: Question about memory allocation in 'substring_conf' (server/util.c)
Date Tue, 05 Feb 2013 20:58:24 GMT
On Tue, Feb 5, 2013 at 3:50 PM, Marion & Christophe JAILLET <
christophe.jaillet@wanadoo.fr> wrote:

> Hi,
>
> This may look useless, but I can't figure out why in function
> 'substring_conf' (line 752 in server/util.c) we allocate len+2 bytes ?
> This seems to have been like that forever.
>
> IMO, len+1 should be enough.
>

+1


> Changing that would be a huge memory usage improvement :).
>

needs more study


>
>
> Does any one has an idea about it ?
>
> Best regards,
> CJ
>
>
>
>
>
>
>


-- 
Born in Roswell... married an alien...
http://emptyhammock.com/

Mime
View raw message