projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ad81f8
)
Force symbol resolving and fix memory leak
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 14 Oct 2008 15:55:52 +0000
(17:55 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 14 Oct 2008 15:55:52 +0000
(17:55 +0200)
src/plugin.c
patch
|
blob
|
history
diff --git
a/src/plugin.c
b/src/plugin.c
index
7cbd72b
..
0d90fd9
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-74,10
+74,11
@@
int __connman_plugin_init(void)
filename = g_build_filename(PLUGINDIR, file, NULL);
- handle = dlopen(filename, RTLD_
LAZY
);
+ handle = dlopen(filename, RTLD_
NOW
);
if (handle == NULL) {
g_warning("Can't load %s: %s", filename,
dlerror());
+ g_free(filename);
continue;
}
@@
-85,7
+86,7
@@
int __connman_plugin_init(void)
desc = dlsym(handle, "connman_plugin_desc");
if (desc == NULL) {
- g_warning("Can't load symbol
"
);
+ g_warning("Can't load symbol
: %s", dlerror()
);
dlclose(handle);
continue;
}