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