#50611 Ticket: 50610 memory leak in dbscan
Closed 3 years ago by spichugi. Opened 4 years ago by lkrispen.
lkrispen/389-ds-base t50610  into  master

@@ -1305,6 +1305,13 @@ 

          }

      }

  

+     if (key.data) {

+         free(key.data);

+     }

+     if (data.data) {

+         free(data.data);

+     }

+ 

      ret = cursor->c_close(cursor);

      if (ret != 0) {

          printf("Can't close the cursor (?!): %s\n", db_strerror(ret));

Bug: the latest allocation of a database iteratioj is not freed,

Fix: after the iteration free key/data structs

Reviewed by: ?

rebased onto 16cf97e

4 years ago

Pull-Request has been merged by lkrispen

4 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This pull request has been cloned to Github as issue and is available here:
- https://github.com/389ds/389-ds-base/issues/3667

If you want to continue to work on the PR, please navigate to the github issue,
download the patch from the attachments and file a new pull request.

Thank you for understanding. We apologize for all inconvenience.

Pull-Request has been closed by spichugi

3 years ago
Metadata