Fixed memory leak in VirtualTap. Used unique_ptr instead of new/delete pair

This commit is contained in:
Joseph Henry
2017-09-17 23:13:33 -07:00
parent 854dbd7947
commit ed51f41b47
2 changed files with 4 additions and 2 deletions

View File

@@ -251,7 +251,7 @@ namespace ZeroTier {
* Timestamp of last run of housekeeping
* SEE: ZT_HOUSEKEEPING_INTERVAL in libzt.h
*/
std::time_t last_housekeeping_ts;
std::time_t last_housekeeping_ts = 0;
/****************************************************************************/
/* In these, we will call the stack's corresponding functions, this is */