Fix leak returning CF allocated string without transferring ownership
Fix interface for validateDispatchedPath to placate the static analyzer