<!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 style="color: #777777;">
<a href="https://gitlab.com/bagder">Daniel Stenberg</a>
<a href="https://gitlab.com/gnutls/gnutls/-/merge_requests/1359#note_447073381">commented</a>:
</p>
<div style="">
<p dir="auto">While this is an improvement I think it still could be enhanced. This update still misses to point out that the user needs to free the <code>->data</code> pointer in the struct to which you get a pointer to.</p>
<pre class="code highlight js-syntax-highlight c" lang="c" v-pre="true"><code><span id="LC1" class="line" lang="c"> <span class="n">rc</span> <span class="o">=</span> <span class="n">gnutls_x509_crt_get_dn2</span><span class="p">(</span><span class="n">x509_cert</span><span class="p">,</span> <span class="o">&</span><span class="n">certfields</span><span class="p">);</span></span>
<span id="LC2" class="line" lang="c"> <span class="n">gnutls_free</span><span class="p">(</span><span class="n">certfields</span><span class="p">.</span><span class="n">data</span><span class="p">);</span></span></code></pre>
</div>
</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/-/merge_requests/1359#note_447073381">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/317ea2178eeef7b4b19040faf1198d2b/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 Merge request","url":"https://gitlab.com/gnutls/gnutls/-/merge_requests/1359#note_447073381"}}</script>
</p>
</div>
</body>
</html>