Changeset: 5ebb3de40404 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5ebb3de40404
Modified Files:
monetdb5/modules/atoms/mtime.c
Branch: Jan2014
Log Message:
Don't free arrays.
diffs (20 lines):
diff --git a/monetdb5/modules/atoms/mtime.c b/monetdb5/modules/atoms/mtime.c
--- a/monetdb5/modules/atoms/mtime.c
+++ b/monetdb5/modules/atoms/mtime.c
@@ -2418,12 +2418,11 @@ MTIMEcompute_rule_foryear(date *ret, con
str
MTIMEtzone_tostr(str *s, const tzone *ret)
{
- char buf[128], *s1 = buf;
- int len = 128;
-
- *s1 = 0;
+ char *s1 = NULL;
+ int len = 0;
+
tzone_tostr(&s1, &len, ret);
- *s = GDKstrdup(buf);
+ *s = s1;
return MAL_SUCCEED;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list