https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115689

--- Comment #4 from Jerry DeLisle <jvdelisle2 at gmail dot com> ---
(In reply to kargls from comment #3)
> The code you posted is standard conforming, and when
> compiled, executes as expected.
> 
> My point is that the program is exiting.  The operate system will
> reap the process and reclaim the memory.  Valgrind need not warn
> about this.  It is just noise.  It is not a memory leak.  If anything
> it is poor programming on the part of the person that wrote the
> code, and arguably a bug the code.
> 

I agree completely, I would prefer that programmers explicitly deallocate.

I simply do not know what our expectations should be when testing.  Maybe in
this case it is a don't care. I posted the question for clarification from
others.

Reply via email to