Fixed memory leak in provision_get_settings