[gnutls-devel] GnuTLS | _gnutls_alt_name_assign_virt_type: Fix memory leak (!2138)

(Deprecated) Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Aug 19 04:32:57 CEST 2026




Daiki Ueno started a new discussion on lib/x509/virt-san.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/2138#note_3702957672

 >  		name->type = GNUTLS_SAN_OTHERNAME;
 >  
 >  		gnutls_free(san->data);
 > +		gnutls_free(othername_oid);

Are you calling `gnutls_free` on a function argument with `const char *othername_oid`? That doesn't sound correct; I guess we should do that in the caller instead.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2138#note_3702957672
You're receiving this email because of your account on gitlab.com. Unsubscribe from this thread: https://gitlab.com/-/namespace/17175643/sent_notifications/6-amybef9fxuc9qtmmubku6lp81-a84t7/unsubscribe | Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20260819/a6de3e09/attachment-0003.html>


More information about the Gnutls-devel mailing list