Fix stringparser mem leak using homegrown leak detector