1
1

opal/dss: fix memory allocation in opal_dss_copy_null

as reported by Coverity with CID 71915
Этот коммит содержится в:
Gilles Gouaillardet 2015-03-06 15:15:11 +09:00
родитель 757b40e56a
Коммит 5b41de4886

Просмотреть файл

@ -10,7 +10,7 @@
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2014 Intel, Inc. All rights reserved.
* Copyright (c) 2014 Research Organization for Information Science
* Copyright (c) 2014-2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$
*
@ -137,7 +137,7 @@ int opal_dss_copy_null(char **dest, char *src, opal_data_type_t type)
{
char *val;
*dest = (char*)malloc(sizeof(char*));
*dest = (char*)malloc(sizeof(char));
if (NULL == *dest) {
return OPAL_ERR_OUT_OF_RESOURCE;
}