summaryrefslogtreecommitdiff
path: root/lib/radsec.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-01 01:00:47 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-01 01:00:47 +0100
commit58dc2b3ab4c8dccde97632d1a2d27ba8e6b9c52a (patch)
tree5bb18f1d20179a85934dc6308c3970831b53744b /lib/radsec.c
parentf762125c8296407c918e75c90f30166d7e546b11 (diff)
Don't have the connection freeing peers -- it's the contexts responsibility.
Also, let _rs_peer_destroy() free secret.
Diffstat (limited to 'lib/radsec.c')
-rw-r--r--lib/radsec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/radsec.c b/lib/radsec.c
index b9c9e35..3772158 100644
--- a/lib/radsec.c
+++ b/lib/radsec.c
@@ -120,6 +120,8 @@ _rs_peer_destroy (struct rs_peer *p)
evutil_freeaddrinfo (p->addr);
p->addr = NULL;
}
+ if (p->secret)
+ rs_free (p->conn->ctx, p->secret);
rs_free (p->conn->ctx, p);
}