mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-15 14:44:41 +08:00

pthread & detach will still quit when parent task exit, cause nsh_parse clone args leak. nsh should use task instead of thread this case can reproduce the memory leak. int main(int argc, FAR char *argv[]) { printf("Hello, World!!\n"); system("sleep 1 &"); return 0; } Signed-off-by: buxiasen <buxiasen@xiaomi.com>