Memory leak in provision_get_settings