checkout-index: plug memory leak from prefix_path()
authorJunio C Hamano <junkio@cox.net>
Sat, 6 May 2006 05:38:06 +0000 (22:38 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 6 May 2006 05:40:45 +0000 (22:40 -0700)
commitdc46da2286cf0d42e1e5ebbd272c201dbc3a626a
tree53cad8038a2d026e80df20df1ff35f4191f4cd94
parent09895c1fa02f77acb2bde3d7e9da675eeb1271cf
checkout-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>
checkout-index.c