I think I don't need to free this because associated_uri_hdr ends up owning the memory, but I should add a comment to this effect.