From d2a7030640bd598c03a1904a94106c39bafc1eb1 Mon Sep 17 00:00:00 2001 From: Gregg Date: Tue, 9 Mar 2021 21:47:52 -0600 Subject: [PATCH] Reclaimed memory from REQ and OPT vectors after they are no longer needed. Lots more memory optimization to perform! --- src/HomeSpan.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/HomeSpan.cpp b/src/HomeSpan.cpp index c7f6d77..1d0aba7 100644 --- a/src/HomeSpan.cpp +++ b/src/HomeSpan.cpp @@ -1459,6 +1459,9 @@ void SpanService::validate(){ homeSpan.configLog+=" *** WARNING! Required Characteristic for this Service not found. ***\n"; } } + + vector().swap(opt); + vector().swap(req); } ///////////////////////////////