[gnutls-devel] GnuTLS | src/danetool.c: Free str on error to avoid memory leak (!1963)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Wed May 28 09:21:03 CEST 2025
Merge request https://gitlab.com/gnutls/gnutls/-/merge_requests/1963 was reviewed by Daiki Ueno
--
Daiki Ueno started a new discussion on src/danetool.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1963#note_2529663271
> fprintf(stderr, "gnutls_hex_encode: %s\n",
> dane_strerror(ret));
> + gnutls_free(str);
Not a fault of this MR, but I suspect this part could be simplified if you use `gnutls_hex_encode2`; then you don't need to call `gnutls_malloc` and `gnutls_free` in two different code paths.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1963
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250528/3237fb83/attachment-0001.html>
More information about the Gnutls-devel
mailing list