[openssl/openssl] dd5975: slh_dsa: Remove redundant cleanup to prevent doubl...

1 view
Skip to first unread message

RigelYoung

unread,
May 29, 2026, 3:46:40 AM (yesterday) May 29
to openssl...@openssl.org
Branch: refs/heads/master
Home: https://github.com/openssl/openssl
Commit: dd59758d0739d54ae04b55d5faa6426b9c08b087
https://github.com/openssl/openssl/commit/dd59758d0739d54ae04b55d5faa6426b9c08b087
Author: yangxuqing <43904538+...@users.noreply.github.com>
Date: 2026-05-29 (Fri, 29 May 2026)

Changed paths:
M crypto/slh_dsa/slh_dsa_key.c

Log Message:
-----------
slh_dsa: Remove redundant cleanup to prevent double free

Since SLH_DSA_KEY is allocated with OPENSSL_zalloc, its members are
NULL-initialized. Removing the redundant slh_dsa_key_hash_cleanup()
inside the err path of slh_dsa_key_hash_init() prevents the
double free while allowing the outer ossl_slh_dsa_key_free() to
safely handle the cleanup.

CLA: trivial

Reviewed-by: Eugene Syromiatnikov <es...@openssl.org>
Reviewed-by: Tomas Mraz <to...@openssl.foundation>
MergeDate: Fri May 29 07:45:46 2026
(Merged from https://github.com/openssl/openssl/pull/31274)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications
Reply all
Reply to author
Forward
0 new messages