]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix potential memory leak on GopherStateData constructor errors
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 1 Oct 2015 12:35:09 +0000 (05:35 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 1 Oct 2015 12:35:09 +0000 (05:35 -0700)
commit58d27a9092c337ca7f02c13470737d6fcaa1c24a
treeea501d1445035d18e93b98259c5e39cbd4bb6c88
parent92c2f0bd9a7dbb9b2d2bc9f9f0f43cc60906a191
Fix potential memory leak on GopherStateData constructor errors

In the unusual event that the GopherStateData object constructor fails
it is possible that the destructor gets called without having gone
through the deleteThis() and swangSong() dance. Since the constructor
allocates memory buffer we need to clean that up.

 Detected by Coverity Scan. Issue 1318022
src/gopher.cc