pf-handler: Always free the object even if no socket has been opened yet

This commit is contained in:
Tobias Brunner
2024-02-19 09:49:08 +01:00
parent 187c72d1af
commit a7493ab57d
+1 -1
View File
@@ -221,8 +221,8 @@ METHOD(pf_handler_t, destroy, void,
{
lib->watcher->remove(lib->watcher, this->receive);
close(this->receive);
free(this);
}
free(this);
}
/**