Open
Description
Currently, the private function pnet_init_only() is called in the unit tests. This does not allocate the pnet_t struct, but it does allocate memory for mutexes. The allocated memory is never released.
Fix this by creating a destructor function and call it from the tests' TearDown() function.