diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-04-22 00:44:45 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-04-22 00:44:45 +0000 |
| commit | 0a169eda51add0070a68b6280293da03529ae78a (patch) | |
| tree | a85f2e71aeffb17b8dc65cb5aa53a94cf682d796 /lasso/id-ff/login.c | |
| parent | c93fb2a356cd8af36bfaa6f5c356e8ad8824f30d (diff) | |
| download | lasso-0a169eda51add0070a68b6280293da03529ae78a.tar.gz lasso-0a169eda51add0070a68b6280293da03529ae78a.tar.xz lasso-0a169eda51add0070a68b6280293da03529ae78a.zip | |
Improve safety by replacing all g_free use by lasso_release
Diffstat (limited to 'lasso/id-ff/login.c')
| -rw-r--r-- | lasso/id-ff/login.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c index c7b4e72f..23ab7f0d 100644 --- a/lasso/id-ff/login.c +++ b/lasso/id-ff/login.c @@ -84,7 +84,7 @@ * } else if (protocolProfile == LASSO_SAML_2_0) { * LassoSamlp2AuthnRequest *request = LASSO_SAMLP2_AUTHN_REQUEST(LASSO_PROFILE(login)->request); * if (request->NameIDPolicy->Format) { - * g_free(request->NameIDPolicy->Format); + * lasso_release(request->NameIDPolicy->Format); * } * request->NameIDPolicy->Format = g_strdup(LASSO_NAME_IDENTIFIER_FORMAT_PERSISTENT); * // Allow creation of new federation @@ -94,7 +94,7 @@ * request->IsPassive = FALSE; * // tell the IdP how to return the response * if (request->ProtocolBinding) { - * g_free(request->ProtocolBinding); + * lasso_release(request->ProtocolBinding); * } * // here we expect an artifact response, it could be post, redirect or PAOS. * request->ProtocolBinding = g_strdup(LASSO_SAML2_METADATA_BINDING_ARTIFACT); |
