Fix a leak in the free-on-close list code used for extension-specific config.