aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorHo-Eun Ryu <ho-eun.ryu@windriver.com>2009-09-30 16:40:17 +0900
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:03:28 -0700
commit6ecb9af793026a1ce5eb36fc520014cd1663fa91 (patch)
tree0f7d43cd64c71521a5dc494b5d7577e09d8b3010 /utils
parent87c753e71b7f92bc737f47b0bb406252494d8952 (diff)
downloadwrs_omxil_core-6ecb9af793026a1ce5eb36fc520014cd1663fa91.tar.gz
utiles:module: fix bug, just free(new) when found matching handle
Diffstat (limited to 'utils')
-rw-r--r--utils/src/module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/src/module.c b/utils/src/module.c
index ce668c3..d43a351 100644
--- a/utils/src/module.c
+++ b/utils/src/module.c
@@ -145,7 +145,8 @@ struct module *module_open(const char *file, int flag)
if (existing) {
LOGE("found opened module %s\n", existing->name);
existing->ref_count++;
- module_close(new);
+
+ free(new);
pthread_mutex_unlock(&g_lock);
return existing;
}