https://bugs.kde.org/show_bug.cgi?id=378765

Milian Wolff <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://commits.kde.org/hea
                   |                            |ptrack/3cb1b7fd2f4b3fd65675
                   |                            |8060582001f1e78c3e12
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Milian Wolff <[email protected]> ---
Git commit 3cb1b7fd2f4b3fd656758060582001f1e78c3e12 by Milian Wolff.
Committed on 17/04/2017 at 19:14.
Pushed by mwolff into branch 'master'.

Call libc and libstdc++ freeres functions in heaptrack_preload on exit

These functions are used by Valgrind already and can be used to force
a clean shutdown of libc and libstdc++. Both usually don't bother
freeing their global resources, which used to be reported as memory
leaks by heaptrack. By calling the freeres functions we now get a
clean shutdown of the libc_leaks.c example without any memory leaks
reported.

Thanks to Maxim Golov for pointing out this hidden functionality and
providing a test case.

M  +19   -0    src/track/heaptrack_preload.cpp
M  +2    -0    tests/manual/CMakeLists.txt
A  +30   -0    tests/manual/libc_leaks.c     [License: LGPL (v2+)]

https://commits.kde.org/heaptrack/3cb1b7fd2f4b3fd656758060582001f1e78c3e12

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to