author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 3 Mar 2008 02:35:10 +0000 (21:35 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 3 Mar 2008 08:05:45 +0000 (00:05 -0800) | ||
commit | 49d58fd0770cbb667a0d7532156ced803e482864 | |
tree | a96773c74661b501d0c26c7d37da0daeb0a0f54d | tree | snapshot |
parent | c50b2b47999134a5da1f9a5ccb36855313e44e7d | commit | diff |
Free the path_lists used to find non-local tags in git-fetch
To support calling find_non_local_tags() more than once in a single
git-fetch process we need the existing_refs to be stack-allocated
so it resets on the second call. We also should free the path
lists to avoid unnecessary memory leaking.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
To support calling find_non_local_tags() more than once in a single
git-fetch process we need the existing_refs to be stack-allocated
so it resets on the second call. We also should free the path
lists to avoid unnecessary memory leaking.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fetch.c | diff | blob | history |