Denis Fondras <open...@ledeuns.net> writes: >> 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 ?
By the OS, which cleans up after the process exits. If it wasn't that way, we'd all have a much shorter uptime... -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE