summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modutils/lsmod.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index df4b3c1..d51da2d 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);
}