]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl: fix memory leaks on realloc failure in ssl_ckch.c
authorIlia Shipitsin <chipitsine@gmail.com>
Mon, 13 Apr 2026 16:14:50 +0000 (18:14 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Sat, 25 Apr 2026 09:08:21 +0000 (11:08 +0200)
commit0c4b7d7f3446017723bbb2764755f3de4643f4bf
treed09c9eedc39e679d778304fa40a30a7654e038f3
parent352db46b0856b3eb204f1b0ed5bc985f9a509dfb
BUG/MINOR: ssl: fix memory leaks on realloc failure in ssl_ckch.c

Replace bare realloc() calls with my_realloc2(), which frees the original
pointer on allocation failure, preventing a memory leak when the pointer
is subsequently overwritten with NULL.

Must be backported to 3.2.
src/ssl_ckch.c