Closed stephan57160 closed 2 years ago
good catch, would you like to send a PR?
Not sure I can test it fully, but why not, yes.
give me 1h or so.
Le 15-Dec-21 à 11:45, Dave Cheney a écrit :
good catch, would you like to send a PR?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pkg/term/issues/68#issuecomment-994666632, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI7SRNO4FBZHUOPL5IA2KGTURBWWNANCNFSM5KDH7EZQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Well... Actually, I found almost the same in
PR #69 raised, in case you have some time to check it.
The code of term.Open() does not close the FD, in case of error:
Leak may happen, when the supposed TERM file is not a TERM.