Actions
Bug #1082
openPossible memory leak in DcmDataset copy constructor
Status:
New
Priority:
Normal
Assignee:
-
Category:
Library
Target version:
-
Start date:
2023-08-10
Due date:
% Done:
0%
Estimated time:
Module:
dcmdata
Operating System:
Compiler:
Description
The DCMTK forum post https://forum.dcmtk.org/viewtopic.php?f=5&t=5292 reports that a call to std::make_shared<DcmDataset>(*dataset)
causes a memory leak.
In this code, std::make_shared<>
will call the copy constructor for DcmDataset, which in turn calls the copy constructor for DcmItem.
We should determine if this is a general problem (i.e. a leak in the copy constructor), or an issue caused by std::make_shared.
No data to display
Actions