Fix memleak in TorController [rework] #7637

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2016_03_torcontrol_leak changing 1 files +9 −4
  1. laanwj commented at 12:31 PM on March 3, 2016: member

    It looks like, TorController::disconnected_cb(TorControlConnection& conn) gets called multiple times which results in multiple event_new().

    Avoid this by creating the event only once in the constructore, and deleting it only once in the destructor (thanks to Cory Fields for the idea).

    Replaces the fix by Jonas Schnelli in #7610, see discussion there.

  2. Fix memleak in TorController [rework]
    It looks like, TorController::disconnected_cb(TorControlConnection&
    conn) gets called multiple times which results in multiple event_new().
    
    Avoid this by creating the event only once in the constructore, and
    deleting it only once in the destructor (thanks to Cory Fields for the
    idea).
    
    Replaces the fix by Jonas Schnelli in #7610, see discussion there.
    e219503711
  3. laanwj added the label P2P on Mar 3, 2016
  4. laanwj added the label Needs backport on Mar 3, 2016
  5. jonasschnelli commented at 12:32 PM on March 3, 2016: contributor

    utACK.

  6. laanwj added the label Resource usage on Mar 3, 2016
  7. theuni commented at 7:54 PM on March 4, 2016: member

    ut ACK

  8. laanwj merged this on Mar 11, 2016
  9. laanwj closed this on Mar 11, 2016

  10. laanwj referenced this in commit 3da5d1bc2e on Mar 11, 2016
  11. MarcoFalke referenced this in commit 4eb70a1816 on Apr 25, 2016
  12. MarcoFalke referenced this in commit 66d5408559 on Apr 27, 2016
  13. MarcoFalke commented at 10:57 AM on June 9, 2016: member

    Backported as part of #7938. Removing label 'Needs backport'.

  14. MarcoFalke removed the label Needs backport on Jun 9, 2016
  15. thokon00 referenced this in commit da87b1ca6a on Jun 28, 2016
  16. sickpig referenced this in commit 1a43fa56ae on Nov 14, 2016
  17. zkbot referenced this in commit 45faa928ec on Mar 26, 2017
  18. 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 18:15 UTC

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