Changeset: 179f58e5dccb for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=179f58e5dccb
Modified Files:
        monetdb5/modules/kernel/batstr.c
Branch: Feb2013
Log Message:

fixed leak in BAT*concat functions


diffs (27 lines):

diff --git a/monetdb5/modules/kernel/batstr.c b/monetdb5/modules/kernel/batstr.c
--- a/monetdb5/modules/kernel/batstr.c
+++ b/monetdb5/modules/kernel/batstr.c
@@ -718,6 +718,7 @@ str STRbatConcat(int *ret, int *l, int *
                str tr = (str) BUNtail(righti,p);
                STRConcat(vp, &tl, &tr);
                bunfastins(bn, h, v);
+               GDKfree(v);
        }
        bn->T->nonil = 0;
        BBPreleaseref(right->batCacheid);
@@ -748,6 +749,7 @@ str STRbatConcatcst(int *ret, int *l, st
                str tl = (str) BUNtail(lefti,p);
                STRConcat(vp, &tl, cst);
                bunfastins(bn, h, v);
+               GDKfree(v);
        }
        bn->T->nonil = 0;
        finalizeResult(ret,bn,left);
@@ -776,6 +778,7 @@ str STRcstConcatbat(int *ret, str *cst, 
                str tr = (str) BUNtail(righti,p);
                STRConcat(vp, cst, &tr);
                bunfastins(bn, h, v);
+               GDKfree(v);
        }
        bn->T->nonil = 0;
        finalizeResult(ret,bn,right);
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to