Skip to content

Use tor_event_free instead of event_del+tor_free

Alex Xu requested to merge Hello71/tor:some-tor_event_free into main

Using tor_free is wrong; event_free must be called for objects obtained from event_new. Additionally, this slightly simplifies the code.

Also, add a static_assert to prevent further instances. It only works on gcc, but that should be fine.

Merge request reports