cleanup
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 @@
 		printf("\n");
 	}
 
+#ifdef CONFIG_FEATURE_CLEAN_UP
+	free(module_names);
+#endif
 
 	return( 0);
 }