author | Bert Wesarg <bert.wesarg@googlemail.com> | |
Mon, 30 Nov 2009 23:57:27 +0000 (00:57 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 1 Dec 2009 20:26:32 +0000 (12:26 -0800) | ||
commit | 92f676fce7fb1e67cb10c7c7d0b5e7521ff829b4 | |
tree | 38161ba5f7e6584a5c99b91a8916f4681b3d4978 | tree | snapshot |
parent | e160da7f60e67ee548472d907ede3291bbc2a79e | commit | diff |
get_ref_states: strdup entries and free util in stale list
The entries in states->stale list is filled in handle_one_branch() that is
a call-back funcation to for_each_ref() using the callback parameter given
to it. We need to strdup() the refnames (both the string list key and the
value stored in util) for more permanent storage and free them when we are
done.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The entries in states->stale list is filled in handle_one_branch() that is
a call-back funcation to for_each_ref() using the callback parameter given
to it. We need to strdup() the refnames (both the string list key and the
value stored in util) for more permanent storage and free them when we are
done.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-remote.c | diff | blob | history |