migration: tls: fix memory leak in migration_tls_get_creds