ikev2: add support for custom ipsec-over-udp port
[vpp.git] / src / vppinfra / test_time_range.c
index 2ec6e13..a707109 100644 (file)
@@ -30,7 +30,8 @@ test_time_range_main (unformat_input_t * input)
   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);
@@ -55,7 +56,7 @@ test_time_range_main (unformat_input_t * input)
 
   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;
@@ -142,6 +143,7 @@ test_time_range_main (unformat_input_t * input)
     }
 
   unformat_free (input2);
+  clib_mem_free (tb->clib_time);
 
   return 0;
 }