summaryrefslogtreecommitdiff
path: root/components/finsh
diff options
context:
space:
mode:
authorbernard <[email protected]>2015-01-19 13:21:09 +0800
committerbernard <[email protected]>2015-01-19 13:21:09 +0800
commit8e439999e8ccaf93df7361f6e3c0ec8c7363bdd7 (patch)
tree1c55d8d30940dfe518fe651bbe6aa33a7de64b7d /components/finsh
parent7e871b0ddd50d39806b983652d19de7e6196b64d (diff)
Prepare for RT-Thread 1.2.4 release.v1.2.4
Diffstat (limited to 'components/finsh')
-rw-r--r--components/finsh/msh_cmd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/finsh/msh_cmd.c b/components/finsh/msh_cmd.c
index a5ccf538b8..a1e1786ae2 100644
--- a/components/finsh/msh_cmd.c
+++ b/components/finsh/msh_cmd.c
@@ -211,7 +211,11 @@ int cmd_free(int argc, char** argv)
{
extern void list_mem(void);
+#ifdef RT_USING_MEMHEAP_AS_HEAP
+ list_memheap();
+#else
list_mem();
+#endif
return 0;
}
FINSH_FUNCTION_EXPORT_ALIAS(cmd_free, __cmd_free, Show the memory usage in the system.);