author | Junio C Hamano <junkio@cox.net> | |
Sat, 6 May 2006 05:53:56 +0000 (22:53 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 6 May 2006 05:53:56 +0000 (22:53 -0700) | ||
commit | fb69a760cc9103d1f8341a3c8ea09bd15a8a412d | |
tree | 94aeec4fbfbcacd46aee6a19b129250dff064756 | tree | snapshot |
parent | dc46da2286cf0d42e1e5ebbd272c201dbc3a626a | commit | diff |
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>
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 | diff | blob | history |