fs/base: silence a memory leak in mca_fs_base_get_fstype()
Fixes CID 1351211
Этот коммит содержится в:
родитель
9376b0340b
Коммит
99fedcb7a3
@ -10,7 +10,7 @@
|
|||||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2008-2016 University of Houston. All rights reserved.
|
* Copyright (c) 2008-2016 University of Houston. All rights reserved.
|
||||||
* Copyright (c) 2015 Research Organization for Information Science
|
* Copyright (c) 2015-2016 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
@ -106,6 +106,7 @@ int mca_fs_base_get_fstype(char *fname )
|
|||||||
char *dir;
|
char *dir;
|
||||||
mca_fs_base_get_parent_dir (fname, &dir );
|
mca_fs_base_get_parent_dir (fname, &dir );
|
||||||
ret = opal_path_nfs (dir, &fstype);
|
ret = opal_path_nfs (dir, &fstype);
|
||||||
|
free(dir);
|
||||||
if ( false == ret ) {
|
if ( false == ret ) {
|
||||||
return ompio_type;
|
return ompio_type;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user