[sr-dev] git:4.1: registrar: Fix memory leak around path and outbound header parsing