summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lasso/id-ff/provider.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lasso/id-ff/provider.c b/lasso/id-ff/provider.c
index 49fba236..d806968e 100644
--- a/lasso/id-ff/provider.c
+++ b/lasso/id-ff/provider.c
@@ -256,12 +256,18 @@ lasso_provider_accept_http_method(LassoProvider *provider, LassoProvider *remote
protocol_methods[http_method+1]);
if (lasso_provider_has_protocol_profile(provider,
- protocol_type, protocol_profile) == FALSE)
+ protocol_type, protocol_profile) == FALSE) {
+ g_free(protocol_profile);
return FALSE;
+ }
if (lasso_provider_has_protocol_profile(remote_provider,
- protocol_type, protocol_profile) == FALSE)
+ protocol_type, protocol_profile) == FALSE) {
+ g_free(protocol_profile);
return FALSE;
+ }
+
+ g_free(protocol_profile);
return TRUE;
}