Do not free xmlDoc before unlinking its tree (#86472)
gitea/lasso/pipeline/head This commit looks good Details

This commit is contained in:
Benjamin Dauvergne 2024-02-01 21:50:21 +01:00
parent cbe2c45455
commit 534d2b9698
1 changed files with 1 additions and 1 deletions

View File

@ -1250,9 +1250,9 @@ cleanup:
if (doc) {
xmlRemoveID(doc, id_attr);
xmlUnlinkNode(xmlnode);
lasso_release_doc(doc);
xmlnode->parent = old_parent;
xmlSetTreeDoc(xmlnode, NULL);
lasso_release_doc(doc);
}
lasso_release_signature_context(dsig_ctx);
return rc;