Changeset: 936f09ac6650 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=936f09ac6650
Modified Files:
        monetdb5/mal/mal_client.c
Branch: default
Log Message:

Fix memory leak in wlc


diffs (19 lines):

diff --git a/monetdb5/mal/mal_client.c b/monetdb5/mal/mal_client.c
--- a/monetdb5/mal/mal_client.c
+++ b/monetdb5/mal/mal_client.c
@@ -401,11 +401,11 @@ freeClient(Client c)
                BBPrelease(c->error_msg->batCacheid);
                BBPrelease(c->error_input->batCacheid);
                c->error_row = c->error_fld = c->error_msg = c->error_input = 
NULL;
-               if( c->wlc)
-                       freeMalBlk(c->wlc);
-               c->wlc_kind = 0;
-               c->wlc = NULL;
        }
+       if( c->wlc)
+               freeMalBlk(c->wlc);
+       c->wlc_kind = 0;
+       c->wlc = NULL;
        if (t)
                THRdel(t);  /* you may perform suicide */
        MT_sema_destroy(&c->s);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to