]> git.ipfire.org Git - thirdparty/squid.git/commit
Various memory leaks in configuration parsing
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 24 Nov 2012 03:40:43 +0000 (20:40 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 24 Nov 2012 03:40:43 +0000 (20:40 -0700)
commit06ba721bff3700fb3b5161cffe050aef81686649
tree68ae021acc11404d75a6a6ca8c4c2d93c6fc2208
parentfda6b13684f14c492ebad52cc77d1563ea4028bd
Various memory leaks in configuration parsing

This lot are all small issues derived from allocating new memory and
assigning to a pointer already pointing at previous allocation, or
passing xstrdup() output to a caller which does not directly hold the
passed memory.
 Both cases will disappear once we clean up the string handling in Squid
but for now these still need fixing to avoid leaking memory.

 Detected by Coverity Scan. Issues 740430, 740432, 740439.
src/adaptation/icap/Options.cc
src/cache_cf.cc
src/main.cc