]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: fix memory leaks on realloc failure in ssl_sock.c
authorIlia Shipitsin <chipitsine@gmail.com>
Mon, 13 Apr 2026 16:14:51 +0000 (18:14 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Sat, 25 Apr 2026 09:08:31 +0000 (11:08 +0200)
commit90bfbea7c0a39ca33edd92ea4b92e77c8079e282
tree93b2e76712f21d29b26120868591b66f2f465b5a
parent0c4b7d7f3446017723bbb2764755f3de4643f4bf
BUG/MINOR: ssl: fix memory leaks on realloc failure in ssl_sock.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.3.
src/ssl_sock.c