fixed two other memory leaks

This commit is contained in:
Tobias Brunner
2008-04-03 15:13:25 +00:00
parent cce97b647a
commit 471f923071
4 changed files with 6 additions and 8 deletions
+1 -5
View File
@@ -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;
}
/**
+1 -1
View File
@@ -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);