<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/bagder">Daniel Stenberg</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1110">#1110</a>:
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">The documentation for <code>gnutls_x509_crt_get_dn2()</code> and <code>gnutls_x509_crt_get_dn2()</code> does not clearly specify what to do with the buffer that is returned. Yes it says it is allocated, but it does not specify whose responsibility it is to free it, nor does it specify exactly <em>how</em> it is to be freed.</p>
<p dir="auto">This will easily lead to applications ending up leaking memory.</p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto">I checked the current live docs here: <a href="https://gnutls.org/reference/gnutls-x509.html#gnutls-x509-crt-get-dn2" rel="nofollow noreferrer noopener" target="_blank">https://gnutls.org/reference/gnutls-x509.html#gnutls-x509-crt-get-dn2</a></p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1110">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/201d613ba85e93dcba596c7b7f6e7e5c/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1110"}}</script>


</p>
</div>
</body>
</html>