Re: [PATCH 7/7] commit-tree: free commit message before exiting
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 4, 2010, 07:55 UTC
- Message-ID
- <7vtyl28k8k.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20101004041834.GD24884@burratino>
Jonathan Nieder <jrnieder@gmail.com> 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?