]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10264 Free NoD data we stored locally
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 2 Oct 2024 12:23:44 +0000 (13:23 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 12 Nov 2024 17:45:03 +0000 (17:45 +0000)
libraries/libldap/result.c

index 95dba939026ee6f51ee606328001902c88bb0724..e80b681045897e55b2815aa0824ece25d778ec0e 100644 (file)
@@ -898,6 +898,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;
                        }