fix: leaks and crash for relay PUT
This commit is contained in:
parent
71f7447f09
commit
77975299a5
3 changed files with 24 additions and 11 deletions
controllers
|
@ -84,6 +84,8 @@ controllers::put_relays_one_by_id_and_num(const HttpRequestPtr &req,
|
|||
strncpy(relay->active_schedule_id, body["active_schedule"].asCString(), 32);
|
||||
strncpy(relay->controller_id, controller_id.c_str(), 32);
|
||||
|
||||
relay->reload_active_schedule();
|
||||
|
||||
db_action_result = relay->insert();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue