fixed two other memory leaks
This commit is contained in:
@@ -449,11 +449,7 @@ static bool is_mediation(private_peer_cfg_t *this)
|
||||
*/
|
||||
static peer_cfg_t* get_mediated_by(private_peer_cfg_t *this)
|
||||
{
|
||||
if (this->mediated_by) {
|
||||
this->mediated_by->get_ref(this->mediated_by);
|
||||
return this->mediated_by;
|
||||
}
|
||||
return NULL;
|
||||
return this->mediated_by;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -303,7 +303,7 @@ struct peer_cfg_t {
|
||||
/**
|
||||
* Get peer_cfg of the connection this one is mediated through.
|
||||
*
|
||||
* @return reference to peer_cfg of the mediation connection
|
||||
* @return the peer_cfg of the mediation connection
|
||||
*/
|
||||
peer_cfg_t* (*get_mediated_by) (peer_cfg_t *this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user