mca/base: fix a misc memory leak
as reported by Coverity with CID 1294415
Этот коммит содержится в:
родитель
9e278a21ce
Коммит
8885b34637
@ -13,6 +13,8 @@
|
||||
* Copyright (c) 2008-2015 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2015 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -91,6 +93,7 @@ static int process_repository_item (const char *filename, void *data)
|
||||
STRINGIFY(MCA_BASE_MAX_COMPONENT_NAME_LEN) "s", type, name);
|
||||
if (0 > ret) {
|
||||
/* does not patch the expected template. skip */
|
||||
free(base);
|
||||
return OPAL_SUCCESS;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user