diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-08 14:29:09 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-08 14:29:09 +0100 |
commit | eff368434eafc492c8b4f8a455e2cb53a101708b (patch) | |
tree | f876e434fbf31dde40ab60600cc243810365217b /lib | |
parent | 6f3ae93eb1a5c4e352b42a9fae9b6f544a2e341a (diff) |
Zap a double free.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/radsec.c | 6 |
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); } |