Update of /cvsroot/monetdb/sql/src/backends/monet4
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26607/src/backends/monet4
Modified Files:
Tag: SQL_2-20
sql_result.mx
Log Message:
fixed leak (I'll also check it into the current branch)
Index: sql_result.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet4/sql_result.mx,v
retrieving revision 1.64.2.4
retrieving revision 1.64.2.5
diff -u -d -r1.64.2.4 -r1.64.2.5
--- sql_result.mx 2 Dec 2007 07:35:10 -0000 1.64.2.4
+++ sql_result.mx 25 Dec 2007 21:29:05 -0000 1.64.2.5
@@ -336,7 +336,10 @@
GDKerror("decimal wrong format (%s)", p);
return NULL;
}
- r = (@1*)GDKmalloc(sizeof(@1));
+ r = df->ai->data;
+ if (!r)
+ r = (@1*)GDKmalloc(sizeof(@1));
+ df->ai->data = r;
if (neg)
*r = -res;
else
@@ -448,8 +451,8 @@
}
if (t->columns.set) {
- dec_format *dec;
stream *out = m->scanner.ws;
+ dec_format *dec;
as.nr_attrs = list_length(t->columns.set);
as.nr = sz;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins