mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
Unref udev monitor during events tearDown
This commit is contained in:
parent
f96b498ae3
commit
e4b369917b
@ -37,6 +37,10 @@ Status UdevEventPublisher::setUp() {
|
||||
void UdevEventPublisher::configure() {}
|
||||
|
||||
void UdevEventPublisher::tearDown() {
|
||||
if (monitor_ != nullptr) {
|
||||
udev_monitor_unref(monitor_);
|
||||
}
|
||||
|
||||
if (handle_ != nullptr) {
|
||||
udev_unref(handle_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user