Changeset: 9b508716f35b for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9b508716f35b Modified Files: monetdb5/mal/mal_interpreter.c Branch: Jan2014 Log Message:
Close resource leak. diffs (16 lines): diff --git a/monetdb5/mal/mal_interpreter.c b/monetdb5/mal/mal_interpreter.c --- a/monetdb5/mal/mal_interpreter.c +++ b/monetdb5/mal/mal_interpreter.c @@ -532,8 +532,11 @@ str runMALsequence(Client cntxt, MalBlkP runtimeProfileInit(cntxt, mb, stk); runtimeProfileBegin(cntxt, mb, stk, 0, &runtimeProfileFunction, 1); mb->starttime = GDKusec(); - if (cntxt->stimeout && cntxt->session && GDKusec()- cntxt->session > cntxt->stimeout) + if (cntxt->stimeout && cntxt->session && GDKusec()- cntxt->session > cntxt->stimeout) { + if ( backup != backups) GDKfree(backup); + if ( garbage != garbages) GDKfree(garbage); throw(MAL, "mal.interpreter", RUNTIME_SESSION_TIMEOUT); + } } stkpc = startpc; exceptionVar = -1; _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list