Explorar o código

update extension app

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1099 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc %!s(int64=15) %!d(string=hai) anos
pai
achega
e01636a3ff
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      components/module/extapp/extapp.c

+ 2 - 2
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;
 }