[sr-dev] git:master:df83103b: core: fix double free on clearing hdr