Changeset: ba493fae4448 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ba493fae4448
Modified Files:
monetdb5/mal/mal_linker.c
Branch: Jul2012
Log Message:
Fix resource leakage in case of error.
Coverity.
diffs (12 lines):
diff --git a/monetdb5/mal/mal_linker.c b/monetdb5/mal/mal_linker.c
--- a/monetdb5/mal/mal_linker.c
+++ b/monetdb5/mal/mal_linker.c
@@ -291,6 +291,8 @@ loadLibrary(str filename, int flag)
mal_set_lock(mal_contextLock, "loadModule");
if (lastfile == maxfiles) {
+ if (handle)
+ dlclose(handle);
showException(GDKout, MAL,"loadModule", "internal error, too
many modules loaded");
} else {
filesLoaded[lastfile].filename = GDKstrdup(filename);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list