Avoid leaking file descriptors in RegisterLoad #6488

pull casey wants to merge 1 commits into bitcoin:master from casey:register-load-filehandle-leak changing 1 files +4 −3
  1. casey commented at 6:07 PM on July 28, 2015: contributor

    This is pretty trivial, but if there's an error here we'll leak a file descriptor. Changed it to always close the file.

  2. Avoid leaking file descriptors in RegisterLoad
    This is pretty trivial, but if there's an error here we'll leak a file
    descriptor. Changed it to always close the file.
    17ac0f4025
  3. TheBlueMatt commented at 8:59 PM on July 28, 2015: member

    utACK

  4. laanwj commented at 6:11 AM on July 29, 2015: member

    utACK. Looks good to me. Non-RAII C types are a continuing exception-safety hazard.

  5. laanwj added the label Utils on Jul 29, 2015
  6. jonasschnelli commented at 7:04 AM on July 29, 2015: contributor

    Nice catch. utACK.

  7. laanwj merged this on Jul 29, 2015
  8. laanwj closed this on Jul 29, 2015

  9. laanwj referenced this in commit 7cbed7fa28 on Jul 29, 2015
  10. casey deleted the branch on Jul 29, 2015
  11. jgarzik commented at 7:39 PM on July 29, 2015: contributor

    posthumous ut ACK

  12. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me