Closed lorteddie closed 3 years ago
@lorteddie thanks for the report - would you like to submit a pull request with the suggested fix?
ok it took me a while but i think i managed. not sure how to link the pr to this ticket though
@lorteddie thanks a lot for your contribution!
ok it took me a while but i think i managed. not sure how to link the pr to this ticket though
Next time, you could reference the ticket in the commit message like this #417
, or you can also link issue to the ticket in the right-hand side ;-)
Thanks again!
ImageSEGConverter::dcmSegmentation2itkimage uses DCMTKs DcmSegmentation::loadDataset to parse the dataset into a segmentation object. The resulting object must be freed by the caller but never is, resulting in a memory leak.
Adding the line std::unique_ptr segdocguard(segdoc);
fixes the issue.