]> 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)
committerOndřej Kuzník <ondra@mistotebe.net>
Wed, 2 Oct 2024 12:23:44 +0000 (13:23 +0100)
libraries/libldap/result.c

index acbf51f55f5804272f13e1217f11a6c34088f8c4..e9ac9f32b36d249b181368f2ab82c39464b32860 100644 (file)
@@ -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;
                        }