registrar: Fix memory leak around path and outbound header parsing

- Fix leak or parsed URI and URI parameter during a call to save()