Today I dug deep into things and finished the patch, so that no more
lost memory is being reported by valgrind and no double free's at the
same time, even when used with "inherit".
I tested with plainRSA setups and pre shared key as well. Runs like a charm.
Tomorrow I will test with certs. I will report back until the end of the
week how it worked out for me.
This patch also fixes another memleak in case of inheritance. The parent
remote address, linking the parent to the child remote config section
was not free'd.
Note that this patch contains the other patch I posted on 2011-03-04
01:16, filename: racoon-memleak-script.patch.