Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
defer in loop may cause resource leak
defer statement executes only when function return, and the resource still be hold during loop. Release the resource manually when not needed.
- Loading branch information