Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21301
Modified Files:
Tag: MonetDB_5-2
mal_linker.mx
Log Message:
Reduce some 'harmless' leakage.
Index: mal_linker.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_linker.mx,v
retrieving revision 1.99
retrieving revision 1.99.4.1
diff -u -d -r1.99 -r1.99.4.1
--- mal_linker.mx 14 Jun 2007 18:58:44 -0000 1.99
+++ mal_linker.mx 27 Oct 2007 18:28:13 -0000 1.99.4.1
@@ -115,6 +115,7 @@
int mode = RTLD_NOW | RTLD_GLOBAL;
void *handle = NULL;
char *fullname;
+ MALfcn fcn=0;
fullname = MSP_locate_file(filename);
if (fullname == NULL) {
@@ -130,8 +131,11 @@
#ifdef DEBUG_MAL_LINKER
stream_printf(GDKout, "localObjectLoaded ?
%s\n",(handle!=0?"yes":"no"));
#endif
- if (handle)
- return (MALfcn) dlsym(handle, filename);
+ if (handle){
+ fcn=(MALfcn) dlsym(handle, filename);
+ GDKfree(filename);
+ return fcn;
+ }
stream_printf(GDKout, "could not access library %s\n", dlerror());
return 0;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins