aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/config/peer_cfg.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2008-04-03 15:13:25 +0000
committerTobias Brunner <tobias@strongswan.org>2008-04-03 15:13:25 +0000
commit471f923071100078c73b42587f249aaac103f8e1 (patch)
treede0e4b95e6712e3a0c5d57f7cdb572128e111484 /src/charon/config/peer_cfg.c
parentcce97b647adbc69667401481c7cebc51c42efeb1 (diff)
downloadstrongswan-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.c6
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;
}
/**