sysctl: Fixing memory leaks in PreloadSystem()
This commit is contained in:
parent
69de8db3e2
commit
8622b582da
7
sysctl.c
7
sysctl.c
@ -645,6 +645,13 @@ static int PreloadSystem(void)
|
|||||||
printf(_("* Applying %s ...\n"), DEFAULT_PRELOAD);
|
printf(_("* Applying %s ...\n"), DEFAULT_PRELOAD);
|
||||||
rc |= Preload(DEFAULT_PRELOAD);
|
rc |= Preload(DEFAULT_PRELOAD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* cleaning */
|
||||||
|
for (i = 0; i < ncfgs; ++i) {
|
||||||
|
free(cfgs[i]);
|
||||||
|
}
|
||||||
|
if (cfgs) free(cfgs);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user