diff options
author | Olga Telezhnaya <olyatelezhnaya@gmail.com> | 2018-10-18 10:28:54 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-19 05:28:12 +0300 |
commit | deec6b8e0f855917443fa0d3bad27089f6a8e23a (patch) | |
tree | b41e3d959d37a27d8e97ff03ce1c236e13cd7b7f /builtin | |
parent | 23941dd7b8f30946505118139fb861b86c1a5cc2 (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')
-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; } |