[Pdns-dev] Re: [Pdns-users] Unable to specify mysql port in newer versions

bert hubert ahu at ds9a.nl
Sun Feb 1 14:52:04 UTC 2004


On Sun, Feb 01, 2004 at 02:43:09PM +0100, Norbert Sendetzky wrote:

> Furthermore the SMySQL class is allocated dynamically by new, but gets 
> never deleted. This leads to a memory hole if an exception is thrown 
> somewhere in the backend.

Did you read gsqlbackend.hh and, more specifically, ~GSqlBackend()?

  virtual ~GSQLBackend()
  {
    if(d_db)
      delete d_db;
  }

Perhaps my understanding of destructors is lacking, but afaik this one will
get called.



-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO


More information about the Pdns-users mailing list