Changeset: 41834bc3e831 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=41834bc3e831 Modified Files: monetdb5/mal/mal_module.c Branch: Jun2016 Log Message:
Allocate correct amount of memory. diffs (13 lines): diff --git a/monetdb5/mal/mal_module.c b/monetdb5/mal/mal_module.c --- a/monetdb5/mal/mal_module.c +++ b/monetdb5/mal/mal_module.c @@ -24,8 +24,7 @@ Module mal_scope; /* the root of the Module scopeJump[256][256]; /* to speedup access to correct scope */ static void newSubScope(Module scope){ - int len = (MAXSCOPE)*sizeof(Module); - scope->subscope = (Symbol *) GDKzalloc(len); + scope->subscope = (Symbol *) GDKzalloc(MAXSCOPE * sizeof(Symbol)); } void _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list