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

Tom Hughes <t...@compton.nu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |t...@compton.nu

--- Comment #1 from Tom Hughes <t...@compton.nu> ---
This is because when you return the stack frame for main is discarded and "a"
is no longer live but when you call exit that stack frame still exists and "a"
is still live as a result.

I think it would be quite hard for valgrind to figure out that exit had been
called and then where to unwind the stack to which is what would be needed to
get the two to behave the same.

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

Reply via email to