Closed artemseleznev closed 1 year ago
Looks like this is a valid issue but using defer like this will keep all files open until the function returns. I'd either move this to a function that is called per file and uses defer or just wrap it in a anonymous function.
Yea, refactoring the reading to a function would be a good idea.
issue was found by Svace (https://www.ispras.ru/en/technologies/svace/)