httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marion & Christophe JAILLET <>
Subject Question about memory allocation in 'substring_conf' (server/util.c)
Date Tue, 05 Feb 2013 20:50:30 GMT

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.
Changing that would be a huge memory usage improvement :).

Does any one has an idea about it ?

Best regards,

View raw message