don't forget to free program header sections when writing core files.  fixes a local DoS that can be carried out by an unprivileged user.
don't forget to free program header sections when writing
core files.  fixes a local DoS that can be carried out by
an unprivileged user.

ok kettenis

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars