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)
committerSam Hartman <hartmans@debian.org>
Mon, 16 Nov 2015 15:18:16 +0000 (10:18 -0500)
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