]> git.ipfire.org Git - thirdparty/curl.git/commit
openldap: fix memory-leak in error path
authorDaniel Stenberg <daniel@haxx.se>
Thu, 9 Oct 2025 20:50:01 +0000 (22:50 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Oct 2025 21:27:08 +0000 (23:27 +0200)
commitd35bdfa8f28d646166592f607b8100b6c60be0f0
treeb022c3066f493ea05b6300afc6de270a8414686c
parent6c0338115ae5f2cde96a9268f54e63fa725d0d7a
openldap: fix memory-leak in error path

The 'ber' pointer could escape a free if an early error occurred.

Reported-by: Joshua Rogers
Closes #18985
lib/openldap.c