From: Ondřej Kuzník Date: Wed, 2 Oct 2024 12:23:44 +0000 (+0100) Subject: ITS#10264 Free NoD data we stored locally X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f6cec3b467c78104e915642b41f7625f35518d8;p=thirdparty%2Fopenldap.git ITS#10264 Free NoD data we stored locally --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index acbf51f55f..e9ac9f32b3 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -904,6 +904,13 @@ nextresp2: if ( lr != &dummy_lr ) { ldap_return_request( ld, lr, 1 ); + } else { + if ( lr->lr_res_matched ) { + LDAP_FREE( lr->lr_res_matched ); + } + if ( lr->lr_res_error ) { + LDAP_FREE( lr->lr_res_error ); + } } lr = NULL; }