update-index: plug memory leak from prefix_path()
authorJunio C Hamano <junkio@cox.net>
Sat, 6 May 2006 05:53:56 +0000 (22:53 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 6 May 2006 05:53:56 +0000 (22:53 -0700)
commitfb69a760cc9103d1f8341a3c8ea09bd15a8a412d
tree94aeec4fbfbcacd46aee6a19b129250dff064756
parentdc46da2286cf0d42e1e5ebbd272c201dbc3a626a
update-index: plug memory leak from prefix_path()

prefix_path() sometimes allocates new memory and returns it, and
other times returns the incoming path argument intact.  The
callers need to be a bit careful not to leak memory.

Signed-off-by: Junio C Hamano <junkio@cox.net>
update-index.c