summaryrefslogtreecommitdiff
path: root/lib/radsec.c
diff options
context:
space:
mode:
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);
}