summaryrefslogtreecommitdiff
path: root/builtin/ls-remote.c
diff options
context:
space:
mode:
authorOlga Telezhnaya <olyatelezhnaya@gmail.com>2018-10-18 07:28:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-19 02:28:12 (GMT)
commitdeec6b8e0f855917443fa0d3bad27089f6a8e23a (patch)
treeb41e3d959d37a27d8e97ff03ce1c236e13cd7b7f /builtin/ls-remote.c
parent23941dd7b8f30946505118139fb861b86c1a5cc2 (diff)
downloadgit-deec6b8e0f855917443fa0d3bad27089f6a8e23a.zip
git-deec6b8e0f855917443fa0d3bad27089f6a8e23a.tar.gz
git-deec6b8e0f855917443fa0d3bad27089f6a8e23a.tar.bz2
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/ls-remote.c')
-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 1a25df7..6a0cdec 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;
}