diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2007-01-07 11:29:26 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2007-01-07 11:29:26 +0000 |
| commit | 8e83ddd65696b843bb1c0dd4d45d9eef19d5334e (patch) | |
| tree | f7cfe48a84093c5fd8d7ceda71ec069cb3f3c08d | |
| parent | 8d4ac988a53409d5846dd2d3f4438c277de443de (diff) | |
| download | lasso-8e83ddd65696b843bb1c0dd4d45d9eef19d5334e.tar.gz lasso-8e83ddd65696b843bb1c0dd4d45d9eef19d5334e.tar.xz lasso-8e83ddd65696b843bb1c0dd4d45d9eef19d5334e.zip | |
fixed memory leak
| -rw-r--r-- | lasso/id-ff/provider.c | 10 |
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; } |
