Fix create_dirpath to shut valgrind up.
This commit was SVN r2800.
Этот коммит содержится в:
родитель
02f95a5f14
Коммит
64db75b43e
@ -74,7 +74,9 @@ int ompi_os_create_dirpath(const char *path, const mode_t mode)
|
|||||||
free(bottom_up);
|
free(bottom_up);
|
||||||
return(OMPI_ERROR);
|
return(OMPI_ERROR);
|
||||||
}
|
}
|
||||||
strcpy(bottom_up, dirname(bottom_up)); /* "pop" the directory tree */
|
tmp = strdup(bottom_up);
|
||||||
|
strcpy(bottom_up, dirname(tmp)); /* "pop" the directory tree */
|
||||||
|
free(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(pth);
|
free(pth);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user