We are using your great logging framework for our Open Source DICOM toolkit DCMTK (see http://www.dcmtk.org/). While checking one of our tools with valgrind on a recent Linux system with gcc, I found a possible memory leak that is reported as "4 bytes in 1 blocks are still reachable in loss record 1 of 1".
After digging a little more into the details, I found that the attached patch fixes this issue. The patch applies to both the most recent release (version 1.1.1) and the trunk at github.
What do you think about it? Am I doing the right thing or do things get worse with this patch?
Diff:
Good catch. Thank you for the patch. It is committed. I will push it later today.
Thanks for confirming! I already committed the patch:
http://git.dcmtk.org/web?p=dcmtk.git;a=commit;h=81c3c7343210c8040eb3e9ffc5bdcde8826764f6