"resource leak " issue #13270

issue fbthrift opened this issue on May 18, 2018
  1. fbthrift commented at 3:18 AM on May 18, 2018: none

    <!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->

    <!-- Describe the issue -->

    version: 0.16.0 source: /src/httpserver.cpp line 606: resource leak

    in line 590: HTTPEvent* ev = new HTTPEvent(eventBase, true, [req_copy, nStatus]{

    but in the end of code segment,"ev" is not released.

    <!--- What behavior did you expect? -->

    <!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->

    <!--- How reliably can you reproduce the issue, what are the steps to do so? -->

    <!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->

    <!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->

    <!-- Any extra information that might be useful in the debugging process. -->

    <!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->

  2. fanquake commented at 3:20 AM on May 18, 2018: member

    Thanks, this was also reported in #12961.

  3. fbthrift commented at 5:40 AM on May 18, 2018: none

    OK.

  4. fbthrift closed this on May 18, 2018

  5. fanquake locked this on Jun 1, 2018
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-29 03:15 UTC

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