[sr-dev] git:master: cfg framework: fix the freeing of the replaced strings