Files
nethogs/src
d4ryus 51ccf42cea Fix libnethogs handle memory leak
Calling nethogsmonitor_loop, canceling it with nethogsmonitor_breakloop
and then calling it again will lead to a Segmentation fault.

This is due to handles not getting reset to NULL which leads to a
invalid list since the old list will be reused by

  new handle(newhandle, current_dev->name, handles);

in nethogsmonitor_init(). If handles is reset to NULL it will also
remove the only reference to the old list, hence it should be freed to
avoid memory leaks.

This change will reset handles to NULL after freeing all handles when
nethogsmonitor_clean_up is called.
2018-11-11 11:31:44 +01:00
..
2016-03-27 23:14:33 +02:00
2018-05-18 19:45:07 +05:30
2018-05-15 21:34:29 +05:30
2016-05-16 14:46:39 +09:00
2016-05-16 14:46:39 +09:00
2016-03-27 23:14:33 +02:00
2016-03-27 23:14:33 +02:00
2018-05-18 19:45:07 +05:30
2018-05-15 21:34:29 +05:30
2016-03-27 23:14:33 +02:00
2016-03-27 23:14:33 +02:00
2017-01-01 20:49:38 +01:00
2018-05-18 20:22:44 +05:30
2018-05-15 21:34:29 +05:30
2016-05-16 14:46:39 +09:00
2016-05-16 14:46:39 +09:00
2016-03-27 23:14:33 +02:00
2018-05-15 21:34:29 +05:30