diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-03-03 13:28:07 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-03-03 13:31:26 +0100 |
commit | e2195037116f47b11b66452351dba4fe606423a2 (patch) | |
tree | 649891536f56b5f2f0909b23a0883d38fbc1ffb2 /.tx | |
parent | 1b68de35250e7c00105eac5c2533b97f4e97dc27 (diff) |
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.
Diffstat (limited to '.tx')
0 files changed, 0 insertions, 0 deletions