Free the realm name which is strdup'd when config is read.
authorLinus Nordberg <linus@nordu.net>
Fri, 11 Mar 2011 12:19:39 +0000 (13:19 +0100)
committerLinus Nordberg <linus@nordu.net>
Fri, 11 Mar 2011 12:19:39 +0000 (13:19 +0100)
lib/radsec.c

index 2ae515d..0957365 100644 (file)
@@ -163,6 +163,7 @@ rs_context_destroy (struct rs_context *ctx)
          p = p->next;
          _rs_peer_destroy (tmp);
        }
+      rs_free (ctx, r->name);
       r = r->next;
       rs_free (ctx, tmp);
     }