Effect config parser: fix use after free on file path
ParsingResult::configPath is the path of the configuration file
used for the factory config parsing.
This path is used for an error log if the configuration file has errors.
The paths used to be a static string literals stored as char*
without lifecycle management.
When it was changed to dynamic strings, the code was not updated.
This patch changes it to a std::string.
Test: flash and check effect works
Signed-off-by: Kevin Rocard <firstname.lastname@example.org>
(cherry picked from commit a82fd60004272acc0ea25914cac429035082be21)
(cherry picked from commit 2fae5b7c8d457856f0896aafc61845ce5b209d4d)
3 files changed