Update of /cvsroot/monetdb/MonetDB4/src/modules/plain
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24112
Modified Files:
Tag: MonetDB_4-18
tcpip.mx
Log Message:
Don't use alloca inside a loop.
Index: tcpip.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB4/src/modules/plain/tcpip.mx,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -d -r1.6 -r1.6.2.1
--- tcpip.mx 9 Apr 2007 21:37:25 -0000 1.6
+++ tcpip.mx 5 Jun 2007 08:53:28 -0000 1.6.2.1
@@ -807,11 +807,12 @@
if (asynchronous) {
int plen = (int) strlen(p);
- char *tmp = (char *)
alloca(plen + 256);
+ char *tmp = (char *)
GDKmalloc(plen + 256);
p[plen - 1] = '\0'; /*
remove trailing ';' */
sprintf(tmp,
"export(%d,%s,\"%s\").enqueue.wakeup;", i, p, nm);
interpret_str(monetClient->stk,
tmp, &res);
+ GDKfree(tmp);
} else {
#define RETURN_PREFIX "return "
if (expect_return) {
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins