Fix #822: use free instead of delete #825

pull sipa wants to merge 1 commits into bitcoin:master from sipa:fix_822 changing 1 files +1 −1
  1. sipa commented at 2:27 PM on February 11, 2012: member

    No description provided.

  2. Fix #822 402deef944
  3. laanwj commented at 2:31 PM on February 11, 2012: member

    ACK. This might solve a few random RPC crashes.

  4. sipa commented at 4:09 PM on February 11, 2012: member

    I believe delete of int* is identical to just free, so i doubt it will change anything in practice.

  5. gavinandresen referenced this in commit b25474d1be on Feb 11, 2012
  6. gavinandresen merged this on Feb 11, 2012
  7. gavinandresen closed this on Feb 11, 2012

  8. laanwj commented at 5:20 PM on February 11, 2012: member

    @sipa it's not -- it might work with some compilers, but not by definition in the C++ standard, doing so gives "undefined behavior"

  9. sipa commented at 7:56 PM on February 11, 2012: member

    Sure... it certainly requires fixing because of that, but I doubt it's a problem in practice for the platforms we're using.

  10. coblee referenced this in commit 3cd9445298 on Jul 17, 2012
  11. destenson referenced this in commit 989317c036 on Jun 26, 2016
  12. lateminer referenced this in commit 0f1764a3db on Oct 30, 2019
  13. Losangelosgenetics referenced this in commit aa4a8cda23 on Mar 12, 2020
  14. DrahtBot locked this on Sep 8, 2021
Contributors

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-19 09:16 UTC

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