Potential file descriptor leak introduced in commit 0b6f40d4cabb3bebf551a49a69ce36d4b0375b6a via PR #10408 (submitted 2017-05-16, merged 2017-05-18).
Net: Fix resource leak in ReadBinaryFile(...) #10587
pull practicalswift wants to merge 1 commits into bitcoin:master from practicalswift:fopen-not-followed-by-fclose-in-all-states-of-the-universe changing 1 files +3 −1-
practicalswift commented at 3:50 PM on June 14, 2017: contributor
-
f2fb132cb0
Net: Fix resource leak in ReadBinaryFile(...)
Introduced in 0b6f40d4cabb3bebf551a49a69ce36d4b0375b6a via PR #10408.
-
paveljanik commented at 6:35 PM on June 14, 2017: contributor
-
theuni commented at 9:51 PM on June 14, 2017: member
utACK f2fb132cb09efb253df44db09035d4210cc61236, but RAII would be nice here.
- fanquake added the label P2P on Jun 15, 2017
- sipa merged this on Jun 16, 2017
- sipa closed this on Jun 16, 2017
- sipa referenced this in commit de8db47b7f on Jun 16, 2017
-
practicalswift commented at 4:21 AM on June 17, 2017: contributor
Friendly ping @str4d – you might want this fix in zcash too :-)
-
str4d commented at 6:46 AM on June 23, 2017: contributor
Thanks @practicalswift, nice catch!
-
laanwj commented at 10:30 AM on June 24, 2017: member
utACK f2fb132, but RAII would be nice here.
Yes it's pretty easy to make a RAII for
FILE*usingunique_ptrwith a custom deleter, we could even make ourfsbridge::fopenreturn this. Agree with not doing it in this PR though. - jasonbcox referenced this in commit be756d0c7f on Jun 28, 2019
- jasonbcox referenced this in commit 2f1adeefb6 on Jun 28, 2019
- jtoomim referenced this in commit 5f44f14f0b on Jun 29, 2019
- jtoomim referenced this in commit e2873e149f on Jun 29, 2019
- PastaPastaPasta referenced this in commit 874b22571e on Jul 5, 2019
- PastaPastaPasta referenced this in commit fd08d30093 on Jul 5, 2019
- jonspock referenced this in commit f4518c7324 on Jul 6, 2019
- jonspock referenced this in commit e567c64a94 on Jul 6, 2019
- PastaPastaPasta referenced this in commit b7535acc07 on Jul 6, 2019
- jonspock referenced this in commit 8f36468989 on Jul 7, 2019
- jonspock referenced this in commit 85c483cec9 on Jul 7, 2019
- jonspock referenced this in commit 9309d597de on Jul 7, 2019
- jonspock referenced this in commit 4f51d749b6 on Jul 7, 2019
- proteanx referenced this in commit 79443d9cf3 on Jul 7, 2019
- proteanx referenced this in commit 75f2a3fca4 on Jul 7, 2019
- PastaPastaPasta referenced this in commit 338d80c78e on Jul 8, 2019
- jonspock referenced this in commit 277beb95d1 on Jul 9, 2019
- jonspock referenced this in commit d0f7c152c3 on Jul 9, 2019
- PastaPastaPasta referenced this in commit f50dcd1f67 on Jul 9, 2019
- PastaPastaPasta referenced this in commit 0647ea6564 on Jul 9, 2019
- barrystyle referenced this in commit 4970c13f7b on Jan 22, 2020
- random-zebra referenced this in commit 0a4072e4fc on Apr 4, 2020
- wqking referenced this in commit c68f5663ec on Sep 4, 2020
- practicalswift deleted the branch on Apr 10, 2021
- DrahtBot locked this on Aug 18, 2022
Contributors
Labels