diff --git a/scheduler/schedule.cpp b/scheduler/schedule.cpp index 562386a..e7fa0df 100644 --- a/scheduler/schedule.cpp +++ b/scheduler/schedule.cpp @@ -59,7 +59,7 @@ int SensorScheduler::WriteScheduleCfg(long &ts, std::string &world_time) { for (int i = 0; i < available_slice_; ++i) { ids.append(slice_allocation[i]); } - delete slice_allocation; + delete []slice_allocation; root["id"] = ids; Json::StyledStreamWriter streamWriter; std::ofstream out_file(SCHEDULE_CONFIG);