diff --git a/sysctl.c b/sysctl.c index 33c94035..51af15dc 100644 --- a/sysctl.c +++ b/sysctl.c @@ -645,6 +645,13 @@ static int PreloadSystem(void) printf(_("* Applying %s ...\n"), DEFAULT_PRELOAD); rc |= Preload(DEFAULT_PRELOAD); } + + /* cleaning */ + for (i = 0; i < ncfgs; ++i) { + free(cfgs[i]); + } + if (cfgs) free(cfgs); + return rc; }