NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/47316: Memory leak in envstat with config file.



The following reply was made to PR bin/47316; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/47316: Memory leak in envstat with config file.
Date: Thu, 13 Dec 2012 15:25:51 +0000

 On Thu, Dec 13, 2012 at 12:45:05PM +0000, Marc Balmer wrote:
  >  A free() is not needed here (in fact even more free's can be removed) =
  >  because the program will exit just after that.  No need to clean up the =
  >  dishes when the ship is sinking...
 
 No, it is always better to tidy up. You don't know where the sources
 might end up being used, and there are/have been platforms where it
 can matter. Also it avoids noise when using leak-checking tools.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index