[asterisk-commits] kpfleming: branch group/new_loader_completion
r40595 - /team/group/new_loader...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Aug 19 20:20:33 MST 2006
Author: kpfleming
Date: Sat Aug 19 22:20:32 2006
New Revision: 40595
URL: http://svn.digium.com/view/asterisk?rev=40595&view=rev
Log:
another compile-only fix
Modified:
team/group/new_loader_completion/main/loader.c
Modified: team/group/new_loader_completion/main/loader.c
URL: http://svn.digium.com/view/asterisk/team/group/new_loader_completion/main/loader.c?rev=40595&r1=40594&r2=40595&view=diff
==============================================================================
--- team/group/new_loader_completion/main/loader.c (original)
+++ team/group/new_loader_completion/main/loader.c Sat Aug 19 22:20:32 2006
@@ -471,7 +471,9 @@
#endif
if (!cur->lib) {
+#if LOADABLE_MODULES
ast_log(LOG_WARNING, "%s\n", dlerror());
+#endif
free(cur);
return NULL;
}
@@ -497,7 +499,9 @@
}
if (errors) {
ast_log(LOG_WARNING, "%d error%s loading module %s, aborted\n", errors, (errors != 1) ? "s" : "", fn);
+#if LOADABLE_MODULES
dlclose(cur->lib);
+#endif
free(cur);
return NULL;
}
More information about the asterisk-commits
mailing list