ls-remote: release memory instead of UNLEAK
Use ref_array_clear() to release memory instead of UNLEAK macros. Signed-off-by: Olga Telezhnaia <olyatelezhnaya@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
23941dd7b8
commit
deec6b8e0f
@ -151,6 +151,6 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
|
||||
}
|
||||
|
||||
UNLEAK(sorting);
|
||||
UNLEAK(ref_array);
|
||||
ref_array_clear(&ref_array);
|
||||
return status;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user