Use tor_event_free instead of event_del+tor_free

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

Loading