Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlga Telezhnaya <olyatelezhnaya@gmail.com>2018-10-18 10:28:54 +0300
committerJunio C Hamano <gitster@pobox.com>2018-10-19 05:28:12 +0300
commitdeec6b8e0f855917443fa0d3bad27089f6a8e23a (patch)
treeb41e3d959d37a27d8e97ff03ce1c236e13cd7b7f /builtin/ls-remote.c
parent23941dd7b8f30946505118139fb861b86c1a5cc2 (diff)
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 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;
}