summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Olga Telezhnaya <olyatelezhnaya@gmail.com>2018-10-18 07:28:54 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-19 11:28:12 +0900
commitdeec6b8e0f855917443fa0d3bad27089f6a8e23a (patch)
treeb41e3d959d37a27d8e97ff03ce1c236e13cd7b7f /builtin
parentref-filter: free memory from used_atom (diff)
downloadtgif-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.c2
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;
}