Changeset: 41611af56f47 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=41611af56f47
Modified Files:
monetdb5/modules/mal/tablet.mx
sql/backends/monet5/sql_result.mx
Branch: Aug2011
Log Message:
fix leak of types in tablet
diffs (24 lines):
diff --git a/monetdb5/modules/mal/tablet.mx b/monetdb5/modules/mal/tablet.mx
--- a/monetdb5/modules/mal/tablet.mx
+++ b/monetdb5/modules/mal/tablet.mx
@@ -1230,6 +1230,8 @@ TABLETdestroy_format(Tablet * as)
GDKfree(fmt[p].batfile);
if (fmt[p].rawfile)
GDKfree(fmt[p].rawfile);
+ if (fmt[p].type)
+ GDKfree(fmt[p].type);
}
GDKfree(fmt);
}
diff --git a/sql/backends/monet5/sql_result.mx
b/sql/backends/monet5/sql_result.mx
--- a/sql/backends/monet5/sql_result.mx
+++ b/sql/backends/monet5/sql_result.mx
@@ -842,7 +842,7 @@ mvc_export_table(mvc *m, stream *s, res_
fmt[i].name = NULL;
fmt[i].sep = ((i - 1) < (t->nr_cols - 1)) ? _strdup(sep) :
_strdup(rsep);
fmt[i].seplen = _strlen(fmt[i].sep);
- fmt[i].type = ATOMname(fmt[i].c[0]->ttype);
+ fmt[i].type = _strdup(ATOMname(fmt[i].c[0]->ttype));
fmt[i].adt = fmt[i].c[0]->ttype;
fmt[i].tostr = &_ASCIIadt_toStr;
fmt[i].frstr = &_ASCIIadt_frStr;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list