Re: [PATCH 7/7] commit-tree: free commit message before exiting

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 7/7] commit-tree: free commit message before exiting

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:49:41

Jonathan Nieder [off-list ref] writes:
Even better would be to exit() instead of returning from cmd_
functions.  Valgrind will not consider any memory that still has a
pointer to it at exit time as a leak.
Hmm, is there a way to tell valgrind that in these functions pretend as if
they left the scope by calling exit() when they return?

Re: [PATCH 7/7] commit-tree: free commit message before exiting

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:41

Junio C Hamano wrote:
Jonathan Nieder [off-list ref] writes:
quoted
Even better would be to exit() instead of returning from cmd_
functions.  Valgrind will not consider any memory that still has a
pointer to it at exit time as a leak.
Hmm, is there a way to tell valgrind that in these functions pretend as if
they left the scope by calling exit() when they return?
You mean a way to tell it to trap the return from these functions?
No, I don't think so.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help