On Mon, Dec 30, 2013 at 10:32 PM, patrick keshishian
<sids...@boxsoft.com> wrote:
> On Mon, Dec 30, 2013 at 04:58:50PM +0100, Mike Belopuhov wrote:
>> On 30 December 2013 16:35, Loganaden Velvindron <lo...@elandsys.com> wrote:
>> > On Mon, Dec 30, 2013 at 08:42:00AM -0500, Ted Unangst wrote:
>> >> On Mon, Dec 30, 2013 at 13:53, Mike Belopuhov wrote:
>> >> > On Mon, Dec 30, 2013 at 03:59 -0800, Loganaden Velvindron wrote:
>> >> >> On Mon, Dec 30, 2013 at 12:45:47PM +0100, Mike Belopuhov wrote:
>> >> >> > On Sun, Dec 29, 2013 at 22:45 -0800, Loganaden Velvindron wrote:
>> >> >> > > Hi All,
>> >> >> > >
>> >> >> > > From NetBSD:
>> >> >> > >
>> >> >> > > Plug memory leak. Coverity CID 1596
>> >> >> > >
>> >> >> >
>> >> >> > memory leak?  can you please elaborate where else this memory
>> >> >> > is "leaking" if not back to the system.
>> >> >>
>> >> >> After a short discussion on IRC, and some digging, it makes sense
>> >> >> that the system cleanups up automatically, and therefore it is not
>> >> >> necessary.
>> >> >>
>> >> >
>> >> > the patch can be committed though for the sake of better style.
>> >>
>> >> but please review to make sure they are correct.
>> >
>> > It would be great if the ldconfig, and the various maintainers could
>> > review the diff, and help me improve the diffs, or discard them.
>> >
>>
>> but the same applies to the ldconfig "fix".  buildhints is called right
>> before exit.  there are no leaks there.  the only thing that can be
>> improved is unlinking tmpfilenam.
>
> Maybe so, but ever since I've known of OpenBSD, it has always
> "preached" good coding practices and exemplified through its
> base source code. So why are you discouraging such fixes? You
> are almost saying that any non-daemon program should not bother
> with free(), close() and similar resource de-allocation function,
> because the system will do the reclaiming after program exits.
> That's rubbish.

Hi Patrick, the base source code is pretty huge, and I'm sure that there are
memory/fd leak issues lurking around that need to be fixed. I'd much rather
spend time finding and fixing them :-)

After I got feedback on my diffs, I looked at another base program (user(8)) and
asked jj@ to have a look at the diff I just sent.

Let the developers decide what they think is the right way. Until they
reach consensus,
we can use our limited time to fix maximum number of bugs for OpenBSD
5.5 release :-)


>
> Regards,
> --patrick
>
>> > I'm mostly interested in finding the small security issues and fixing
>> > them, rather than fixing style issues :-)
>> >
>>
>



-- 
This message is strictly personal and the opinions expressed do not
represent those of my employers, either past or present.

Reply via email to