diff --git a/modutils/lsmod.c b/modutils/lsmod.c index df4b3c16b..d51da2d16 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c @@ -169,6 +169,9 @@ extern int lsmod_main(int argc, char **argv) printf("\n"); } +#ifdef CONFIG_FEATURE_CLEAN_UP + free(module_names); +#endif return( 0); }