From: Alan T. DeKok Date: Thu, 29 Oct 2015 16:33:21 +0000 (-0400) Subject: Free the pointer, not the data it points to X-Git-Tag: release_3_0_11~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=187fb97bbde5aed051b762340a0affe1672f4bf9;p=thirdparty%2Ffreeradius-server.git Free the pointer, not the data it points to --- diff --git a/src/modules/rlm_realm/rlm_realm.c b/src/modules/rlm_realm/rlm_realm.c index 349809521e1..b2cc178ea53 100644 --- a/src/modules/rlm_realm/rlm_realm.c +++ b/src/modules/rlm_realm/rlm_realm.c @@ -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