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>
Olga Telezhnaya committed
Oct 18, 2018 at 07:28 UTC
deec6b8e0f855917443fa0d3bad27089f6a8e23a
1 file changed
+1
-1
builtin/ls-remote.c
+1
-1
@@ -151,6 +151,6 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
151
}
152
153
UNLEAK(sorting);
154
- UNLEAK(ref_array);
154
+ ref_array_clear(&ref_array);
155
return status;
156
}