pf-handler: Always free the object even if no socket has been opened yet
This commit is contained in:
1 parent
187c72d1af
commit
a7493ab57d
1 file changed
+1
-1
@@ -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