author | Tay Ray Chuan <rctay89@gmail.com> | |
Fri, 7 Oct 2011 07:40:22 +0000 (15:40 +0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 7 Oct 2011 23:15:02 +0000 (16:15 -0700) | ||
commit | 9516a598e3ecf39667a35ab2c5aa6cf88e9f7717 | |
tree | 9104d390fa0c955eaccdf67d9da0e277bc6f4482 | tree | snapshot |
parent | 6b67e0dc068d1bfd07686071b70f60078380666f | commit | diff |
fetch: plug two leaks on error exit in store_updated_refs
Close FETCH_HEAD and release the string url even if we have to leave the
function store_updated_refs() early.
Reported-by: Chris Wilson <cwilson@vigilantsw.com>
Helped-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Close FETCH_HEAD and release the string url even if we have to leave the
function store_updated_refs() early.
Reported-by: Chris Wilson <cwilson@vigilantsw.com>
Helped-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c | diff | blob | history |