summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/radsec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/radsec.c b/lib/radsec.c
index dd182c6..ddd4edd 100644
--- a/lib/radsec.c
+++ b/lib/radsec.c
@@ -117,14 +117,14 @@ _rs_peer_destroy (struct rs_peer *p)
assert (p);
assert (p->conn);
assert (p->conn->ctx);
- /* NOTE: The peer object doesn't own its connection (conn). */
+
+ /* NOTE: The peer object doesn't own conn, nor realm. */
+ /* NOTE: secret is owned by config */
if (p->addr)
{
evutil_freeaddrinfo (p->addr);
p->addr = NULL;
}
- if (p->secret)
- rs_free (p->conn->ctx, p->secret);
rs_free (p->conn->ctx, p);
}