Changeset: d0f4202627b8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d0f4202627b8
Modified Files:
        monetdb5/mal/mal_interpreter.c
Branch: Jun2016
Log Message:

Memory leak.


diffs (17 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
@@ -725,11 +725,13 @@ str runMALsequence(Client cntxt, MalBlkP
                                        nstk->up = stk;
                                        if (nstk->calldepth > 256) {
                                                ret= createException(MAL, 
"mal.interpreter", MAL_CALLDEPTH_FAIL);
+                                               GDKfree(nstk);
                                                break;
                                        }
                                        if ((unsigned)nstk->stkdepth > 
THREAD_STACK_SIZE / sizeof(mb->var[0]) / 4 && THRhighwater()){
                                                /* we are running low on stack 
space */
                                                ret= createException(MAL, 
"mal.interpreter", MAL_STACK_FAIL);
+                                               GDKfree(nstk);
                                                break;
                                        }
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to