]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Free the pointer, not the data it points to
authorAlan T. DeKok <aland@freeradius.org>
Thu, 29 Oct 2015 16:33:21 +0000 (12:33 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 29 Oct 2015 16:33:21 +0000 (12:33 -0400)
src/modules/rlm_realm/rlm_realm.c

index 349809521e16dcfd9abac5cb94bbe2ceafd82b66..b2cc178ea5300b80df7b92b7f2d0e3ff053e1bb3 100644 (file)
@@ -377,7 +377,7 @@ static int mod_instantiate(CONF_SECTION *conf, void *instance)
        if (strcmp(inst->trust_router, "none") != 0) {
                if (!tr_init()) return -1;
        } else {
-               rad_const_free(&inst->trust_router);
+               rad_const_free(inst->trust_router);
        }
 #endif