Re: [PATCH] Fix minor memory leak in init-db
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 16, 2009, 19:56 UTC
- Message-ID
- <7vzldclt33.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <cd3664ac0905141522s3ad78411o9f015d2e7720c8b5@mail.gmail.com>
Ammon Riley <ammon.riley@gmail.com> writes:
> There was an xmalloc() for path, but I didn't see a corresponding free(). > Does it happen somewhere else that I'm not expecting?
It implicitly happens in exit() in git.c:handle_internal_command() after cmd_init_db() returns the control to it.