diff options
| author | Damien Laniel <dlaniel@entrouvert.com> | 2006-12-02 14:47:14 +0000 |
|---|---|---|
| committer | Damien Laniel <dlaniel@entrouvert.com> | 2006-12-02 14:47:14 +0000 |
| commit | 224eb79d490407905efce719c76fc8946663010c (patch) | |
| tree | 6856cfa7e2cfd18cd3e35c7a6febf1049daacb54 | |
| parent | 85ce95f4e55bfcd13adf4c31de3323e04628e484 (diff) | |
Fixed memory management problems
| -rw-r--r-- | lasso/xml/saml-2.0/samlp2_response.c | 2 | ||||
| -rw-r--r-- | lasso/xml/xml.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lasso/xml/saml-2.0/samlp2_response.c b/lasso/xml/saml-2.0/samlp2_response.c index 2c6fb00a..d66b1fe6 100644 --- a/lasso/xml/saml-2.0/samlp2_response.c +++ b/lasso/xml/saml-2.0/samlp2_response.c @@ -119,7 +119,7 @@ get_xmlNode(LassoNode *node, gboolean lasso_dump) assertions = g_list_next(assertions)) { lasso_node_destroy(assertions->data); } - g_list_free(response->EncryptedAssertion); + response->EncryptedAssertion = NULL; } return result; diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c index 32ebfd03..4c39fe3e 100644 --- a/lasso/xml/xml.c +++ b/lasso/xml/xml.c @@ -429,7 +429,7 @@ lasso_node_encrypt(LassoNode *lasso_node, xmlSecKey *encryption_public_key) encrypted_element = LASSO_SAML2_ENCRYPTED_ELEMENT(lasso_saml2_encrypted_element_new()); /* Save the original data for dumps */ - encrypted_element->original_data = lasso_node; + encrypted_element->original_data = g_object_ref(lasso_node); /* Create a document to contain the node to encrypt */ doc = xmlNewDoc((xmlChar*)"1.0"); |
