Skip to content

Commit deec6b8

Browse files
telezhnayagitster
authored andcommitted
ls-remote: release memory instead of UNLEAK
Use ref_array_clear() to release memory instead of UNLEAK macros. Signed-off-by: Olga Telezhnaia <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 23941dd commit deec6b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/ls-remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,6 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
151151
}
152152

153153
UNLEAK(sorting);
154-
UNLEAK(ref_array);
154+
ref_array_clear(&ref_array);
155155
return status;
156156
}

0 commit comments

Comments
 (0)