Free the pointer, not the data it points to
[freeradius.git] / src / modules / rlm_realm / rlm_realm.c
index 3498095..b2cc178 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