diff options
author | Tobias Brunner <tobias@strongswan.org> | 2008-04-03 15:13:25 +0000 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2008-04-03 15:13:25 +0000 |
commit | 471f923071100078c73b42587f249aaac103f8e1 (patch) | |
tree | de0e4b95e6712e3a0c5d57f7cdb572128e111484 /src/charon/config/peer_cfg.c | |
parent | cce97b647adbc69667401481c7cebc51c42efeb1 (diff) | |
download | strongswan-471f923071100078c73b42587f249aaac103f8e1.tar.bz2 strongswan-471f923071100078c73b42587f249aaac103f8e1.tar.xz |
fixed two other memory leaks
Diffstat (limited to 'src/charon/config/peer_cfg.c')
-rw-r--r-- | src/charon/config/peer_cfg.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/charon/config/peer_cfg.c b/src/charon/config/peer_cfg.c index 9e11f883e..d85935c60 100644 --- a/src/charon/config/peer_cfg.c +++ b/src/charon/config/peer_cfg.c @@ -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; } /** |