On Tue, May 06, 2014 at 01:45:57PM +0200, Denis Fondras wrote:
> > please, if you want to help, be MUCH more precise (and get clear on
> > what side of the fork() we are). With a report like that I had to go
> > through large parts of code to ecventually maybe spot what you are
> > referring to. That doesn't help, that just costs time. I appreciate
> > the effort, but please make it easier to consume for us :)
> > 
> 
> Sorry for the imprecise question.
> 
> I am reading src/usr.sbin/bgpd/rde.c (rev 1.328).
> At line 234 (so in the child process), there is :
> 
>       if ((conf = calloc(1, sizeof(struct bgpd_config))) == NULL)
> 
> I can't find any free(conf) later in the code. From _exit(2) I don't
> understand it can free allocated memory on itself. How is it handled ?
> 

This memory does not need to be freed during runtime. Sure we could
free(conf) just before calling _exit() but there is not much point doing
so.

-- 
:wq Claudio

Reply via email to