Memory leak in dcmtk-3.6.1_20121102\dcmwlm\libsrc\wlfsim.cc

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
yueran
Posts: 9
Joined: Wed, 2012-04-25, 08:57

Memory leak in dcmtk-3.6.1_20121102\dcmwlm\libsrc\wlfsim.cc

#1 Post by yueran » Thu, 2012-11-29, 06:05

Hello,
I find some memory leaks in dcmtk-3.6.1_20121102\dcmwlm\libsrc\wlfsim.cc, Such as ScheduledPerformingPhysicianNamesMatch,
PatientsNamesMatch,
AccessionNumbersMatch,
RequestedProcedureIdsMatch,
ReferringPhysicianNamesMatch,
PatientsSexesMatch,
RequestingPhysiciansMatch,
AdmissionIdsMatch,
RequestedProcedurePrioritiesMatch in WlmFileSystemInteractionManager class.

The sv pointer's memory is leak when the fucnction returns.
Please confirm the problem.

By the way,in the DateTimeRangeMatch function, I prefer delete[] ddv for delete ddv.

Uli Schlachter
DCMTK Developer
Posts: 120
Joined: Thu, 2009-11-26, 08:15

Re: Memory leak in dcmtk-3.6.1_20121102\dcmwlm\libsrc\wlfsim

#2 Post by Uli Schlachter » Tue, 2012-12-04, 14:40

Urgh. C strings. Please don't make me touch that file again. Ever.

Anyway: Of course you are right. The problems should be fixed now:
http://git.dcmtk.org/web?p=dcmtk.git;a= ... 52bfc2605e
http://git.dcmtk.org/web?p=dcmtk.git;a= ... 04215854a2

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest