[gnutls-devel] GnuTLS | lib/ext/srp.c: Add gnutls_free() to avoid memory leak (!1956)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Sat Jul 5 02:52:03 CEST 2025
Daiki Ueno started a new discussion on lib/ext/srp.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1956#note_2604424109
>
> priv->password = gnutls_strdup(cred->password);
> if (priv->password == NULL) {
> + gnutls_free(priv->username);
> gnutls_assert();
Not a fault of this MR, but shouldn't we also set `ret` here (e.g., `GNUTLS_E_MEMORY_ERROR`)?
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1956#note_2604424109
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/20250705/c895a404/attachment-0001.html>
More information about the Gnutls-devel
mailing list