Struct literal style fix.
Only free up the pathspec only if it was filled out.