diff options
author | Olga Telezhnaya <olyatelezhnaya@gmail.com> | 2018-10-18 07:28:54 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-19 11:28:12 +0900 |
commit | deec6b8e0f855917443fa0d3bad27089f6a8e23a (patch) | |
tree | b41e3d959d37a27d8e97ff03ce1c236e13cd7b7f /builtin | |
parent | ref-filter: free memory from used_atom (diff) | |
download | tgif-deec6b8e0f855917443fa0d3bad27089f6a8e23a.tar.xz |
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>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/ls-remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/ls-remote.c b/builtin/ls-remote.c index 1a25df7ee1..6a0cdec30d 100644 --- a/builtin/ls-remote.c +++ b/builtin/ls-remote.c @@ -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; } |