[gnutls-devel] GnuTLS | libdane: A bit of a mix of gnutls_calloc and free (#1787)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Fri Jan 16 19:49:05 CET 2026
Tim Rühsen created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1787
For example:
```
@@ -196,7 +201,7 @@ int dane_query_to_raw_tlsa(dane_query_t q, unsigned int *data_entries,
*dane_data_len =
gnutls_calloc(q->data_entries + 1, sizeof(**dane_data_len));
if (*dane_data_len == NULL) {
- free(*dane_data);
+ gnutls_free(*dane_data);
*dane_data = NULL;
return DANE_E_MEMORY_ERROR;
}
```
Nothing serious, but better avoid mixing.
Maybe worth a general check for these issues in `libdane/dane.c`.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1787
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/20260116/33fe0f82/attachment.html>
More information about the Gnutls-devel
mailing list