Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
gso: fix the header parser to read only
[vpp.git]
/
src
/
vppinfra
/
test_time_range.c
diff --git
a/src/vppinfra/test_time_range.c
b/src/vppinfra/test_time_range.c
index
2ec6e13
..
a707109
100644
(file)
--- a/
src/vppinfra/test_time_range.c
+++ b/
src/vppinfra/test_time_range.c
@@
-30,7
+30,8
@@
test_time_range_main (unformat_input_t * input)
f64 timezone_offset;
/* Init time base */
f64 timezone_offset;
/* Init time base */
- clib_timebase_init (tb, -5 /* EST */ , CLIB_TIMEBASE_DAYLIGHT_USA);
+ clib_timebase_init (tb, -5 /* EST */ , CLIB_TIMEBASE_DAYLIGHT_USA,
+ 0 /* allocate a clib_time_t */ );
/* Set up summer time cache */
now = clib_timebase_now (tb);
/* Set up summer time cache */
now = clib_timebase_now (tb);
@@
-55,7
+56,7
@@
test_time_range_main (unformat_input_t * input)
fformat (stdout, "Test daylight time rules:\n");
fformat (stdout, "Test daylight time rules:\n");
- memset (cp, 0, sizeof (*cp));
+
clib_
memset (cp, 0, sizeof (*cp));
/* Just before DST starts */
cp->year = 2011;
/* Just before DST starts */
cp->year = 2011;
@@
-142,6
+143,7
@@
test_time_range_main (unformat_input_t * input)
}
unformat_free (input2);
}
unformat_free (input2);
+ clib_mem_free (tb->clib_time);
return 0;
}
return 0;
}