From e01636a3ffe1ad1d16380c9b69ad713b60a57b77 Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Tue, 23 Nov 2010 01:21:43 +0000 Subject: [PATCH] update extension app git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1099 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/module/extapp/extapp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/module/extapp/extapp.c b/components/module/extapp/extapp.c index c638e9773..2858766f8 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; }