<!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=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div>
<p dir="auto">Good catch, I simply missed that, but then...</p>
<p dir="auto">That function is an internal one, called from one place in gnutls_priority_init(). I see it also in libgnutls.map and a test C file. So we can change the docs/comment about free() at will and change the test to use gnutls_free(). WDYT ?</p>
<p dir="auto">Using strdup() and a gnutls_strdup() in the library code just pulls in a superfluous dependency (and duplicated code from gnulib in case the libc doesn't provide strdup()). Not talking about caching and extra work when linking (if not inlined).</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/merge_requests/742#note_101433839">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/6ce12c96791995cc0dcb2768492ae38a/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/742#note_101433839"}}</script>
</p>
</div>
</body>
</html>