You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for pointing this out! You are right that this function is missing calls to src.Close. This seems to be a mistake in my eyes and not serving any purpose. Would you be interested in opening a PR to fix this?
Hi,
I was reviewing the code and noticed that in the file merge process, the file opened with os.Open is not explicitly closed.
tusd/pkg/filestore/filestore.go
Lines 242 to 253 in d69efe0
From my understanding, not closing the file could lead to resource leaks, especially with file descriptors.
Is there a specific reason why src.Close() is omitted here?
The text was updated successfully, but these errors were encountered: