About here there should be a test if file is already an absolute path with the util_is_abs_path(file) function; in that case the current value of file can (and should) be used directly, with a new attempt to allocate a full path.