Explorar o código

Fix one-time memory leak when initializing libevent. Spotted by Sebastian

Nick Mathewson %!s(int64=15) %!d(string=hai) anos
pai
achega
441d90a8f9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/common/compat_libevent.c

+ 2 - 0
src/common/compat_libevent.c

@@ -187,6 +187,8 @@ tor_libevent_initialize(tor_libevent_cfg *torcfg)
 #endif
 
     the_event_base = event_base_new_with_config(cfg);
+
+    event_config_free(cfg);
   }
 #else
   the_event_base = event_init();