Fix incorrect defer usage
Problem:
Using defer inside a loop can lead to resource leaks
Solution:
Judge newer file in the separate function
Signed-off-by:
iyear <ljyngup@gmail.com>
Signed-off-by:
Brad Davidson <brad.davidson@rancher.com>
Showing
Please
register
or
sign in
to comment