This will still need the teardown method that was here before, because `optionsStruct.pathspec.strings` needs to be freed before the top-level pointer is freed.