Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26607/src/backends/monet5

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/monet5/sql_result.mx,v
retrieving revision 1.64.2.5
retrieving revision 1.64.2.6
diff -u -d -r1.64.2.5 -r1.64.2.6
--- sql_result.mx       2 Dec 2007 07:35:10 -0000       1.64.2.5
+++ sql_result.mx       25 Dec 2007 21:29:05 -0000      1.64.2.6
@@ -337,7 +337,10 @@
                showException(SQL,"sql", "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


-------------------------------------------------------------------------
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

Reply via email to