diff --git a/components/module/extapp/extapp.c b/components/module/extapp/extapp.c index c638e9773c..2858766f8f 100644 --- a/components/module/extapp/extapp.c +++ b/components/module/extapp/extapp.c @@ -27,8 +27,8 @@ int rt_application_entry(void) if(f5 != RT_NULL) f5(); else rt_kprintf("dlsym function5 failed.\n"); } - - dlclose(handle); + + if(handle != RT_NULL) dlclose(handle); return 0; }