This looks straightforward, but I'd appreciate review. I don't really understand why sect_opts never gets freed?