<p>I have never used Openssl, but for libxml, as far as I remember either it returns the memory (the document tree) to the caller, or the caller has to do new/free calls like for newcontext paired with freecontext.</p>
<p>To share some resource between plugins reference count it and have plugins free their reference when they are done with it or are exiting.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/865?email_source=notifications&email_token=AAIOWJ3EJB6WB6WHGMMJNVDPWAFFJA5CNFSM4HN2FXNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWPL2I#issuecomment-493680105">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5SUZPNWJ4BAWYYAQDPWAFFJANCNFSM4HN2FXNA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3QZOXF7ULZS42JNMDPWAFFJA5CNFSM4HN2FXNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWPL2I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/865?email_source=notifications\u0026email_token=AAIOWJ3EJB6WB6WHGMMJNVDPWAFFJA5CNFSM4HN2FXNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWPL2I#issuecomment-493680105",
"url": "https://github.com/geany/geany-plugins/pull/865?email_source=notifications\u0026email_token=AAIOWJ3EJB6WB6WHGMMJNVDPWAFFJA5CNFSM4HN2FXNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWPL2I#issuecomment-493680105",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>