Changeset: 55be80351ccd for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=55be80351ccd
Modified Files:
monetdb5/extras/compiler/mal_compiler.c
Branch: Aug2011
Log Message:
mccBody: don't use alloca
diffs (20 lines):
diff --git a/monetdb5/extras/compiler/mal_compiler.c
b/monetdb5/extras/compiler/mal_compiler.c
--- a/monetdb5/extras/compiler/mal_compiler.c
+++ b/monetdb5/extras/compiler/mal_compiler.c
@@ -624,7 +624,7 @@
InstrPtr p;
int *catch, ctop = 0, errors = 0;
- catch = (int *) alloca(mb->stop);
+ catch = (int *) GDKmalloc(mb->stop);
for (i = 1; i < mb->stop; i++) {
p = getInstrPtr(mb, i);
@@ -676,6 +676,7 @@
}
errors += mccInstruction(f, mb, p, i, catch, &ctop);
}
+ GDKfree(catch);
if (errors)
showErrors(cntxt);
}
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list