Reclaimed memory from REQ and OPT vectors after they are no longer needed.

Lots more memory optimization to perform!
This commit is contained in:
Gregg 2021-03-09 21:47:52 -06:00
parent 8121146c6b
commit d2a7030640
1 changed files with 3 additions and 0 deletions

View File

@ -1459,6 +1459,9 @@ void SpanService::validate(){
homeSpan.configLog+=" *** WARNING! Required Characteristic for this Service not found. ***\n";
}
}
vector<HapChar *>().swap(opt);
vector<HapChar *>().swap(req);
}
///////////////////////////////