diff --git a/endpoints/api_v1_schedules_STR.c b/endpoints/api_v1_schedules_STR.c index 883c7ab..3add3ae 100644 --- a/endpoints/api_v1_schedules_STR.c +++ b/endpoints/api_v1_schedules_STR.c @@ -247,6 +247,7 @@ api_v1_schedules_STR_PUT(struct http_message *hm, endpoint_args_t *args, endpoin response->alloced_content = true; } cJSON_Delete(json); + relay_free_list(relays); schedule_free(schedule); } @@ -294,6 +295,8 @@ api_v1_schedules_STR_DELETE(struct http_message *hm, endpoint_args_t *args, endp response->content_length = STRLEN(content);; response->content = content; response->alloced_content = false; + + schedule_free(schedule); return; }