summaryrefslogtreecommitdiffstats
path: root/lasso/Attic/protocols
diff options
context:
space:
mode:
authorValery Febvre <vfebvre at easter-eggs.com>2004-07-25 23:30:09 +0000
committerValery Febvre <vfebvre at easter-eggs.com>2004-07-25 23:30:09 +0000
commitec8c3ce68c8ad21554a6191c6dea0f330050c3ba (patch)
treeb4e0df3eef27dfef3915b783e1e9f52f6cdce1e3 /lasso/Attic/protocols
parent4154f6d456b3b39d12bddb188f037ab850c48b62 (diff)
downloadlasso-ec8c3ce68c8ad21554a6191c6dea0f330050c3ba.tar.gz
lasso-ec8c3ce68c8ad21554a6191c6dea0f330050c3ba.tar.xz
lasso-ec8c3ce68c8ad21554a6191c6dea0f330050c3ba.zip
Removed many memory leaks
Diffstat (limited to 'lasso/Attic/protocols')
-rw-r--r--lasso/Attic/protocols/identity.c5
-rw-r--r--lasso/Attic/protocols/logout_response.c4
-rw-r--r--lasso/Attic/protocols/name_identifier_mapping_response.c1
3 files changed, 8 insertions, 2 deletions
diff --git a/lasso/Attic/protocols/identity.c b/lasso/Attic/protocols/identity.c
index 38494fbc..6efaea39 100644
--- a/lasso/Attic/protocols/identity.c
+++ b/lasso/Attic/protocols/identity.c
@@ -141,14 +141,17 @@ lasso_identity_verify_nameIdentifier(LassoIdentity *identity,
if(xmlStrEqual(identity_content, nameIdentifier_content)){
return(TRUE);
}
+ xmlFree(identity_content);
}
if(identity->remote_nameIdentifier){
identity_content = lasso_node_get_content(identity->remote_nameIdentifier);
if(xmlStrEqual(identity_content, nameIdentifier_content)){
return(TRUE);
}
+ xmlFree(identity_content);
}
-
+ xmlFree(nameIdentifier_content);
+
return(FALSE);
}
diff --git a/lasso/Attic/protocols/logout_response.c b/lasso/Attic/protocols/logout_response.c
index ddcfbd6c..03e53be0 100644
--- a/lasso/Attic/protocols/logout_response.c
+++ b/lasso/Attic/protocols/logout_response.c
@@ -133,13 +133,15 @@ lasso_logout_response_new(gchar *providerID,
lasso_samlp_response_abstract_set_recipient(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
recipient);
lasso_node_destroy(request_providerID);
-
+ xmlFree(recipient);
+
request_relayState = lasso_node_get_child(request, "RelayState", NULL);
if (request_relayState != NULL) {
relayState = lasso_node_get_content(request_relayState);
lasso_lib_status_response_set_relayState(LASSO_LIB_STATUS_RESPONSE(response),
relayState);
lasso_node_destroy(request_relayState);
+ xmlFree(relayState);
}
ss = lasso_samlp_status_new();
diff --git a/lasso/Attic/protocols/name_identifier_mapping_response.c b/lasso/Attic/protocols/name_identifier_mapping_response.c
index 9101a797..f99a6339 100644
--- a/lasso/Attic/protocols/name_identifier_mapping_response.c
+++ b/lasso/Attic/protocols/name_identifier_mapping_response.c
@@ -108,6 +108,7 @@ lasso_name_identifier_mapping_response_new(const xmlChar *providerID,
lasso_samlp_response_abstract_set_recipient(LASSO_SAMLP_RESPONSE_ABSTRACT(response),
recipient);
lasso_node_destroy(request_providerID);
+ xmlFree(recipient);
ss = lasso_samlp_status_new();
ssc = lasso_samlp_status_code_new();