pf-handler: Always free the object even if no socket has been opened yet
This commit is contained in:
@@ -221,8 +221,8 @@ METHOD(pf_handler_t, destroy, void,
|
||||
{
|
||||
lib->watcher->remove(lib->watcher, this->receive);
|
||||
close(this->receive);
|
||||
free(this);
|
||||
}
|
||||
free(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user