1
1

mpool/base: silence a valgrind warning

by adding a constructor to mca_mpool_base_tree_item_t

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2016-11-29 16:36:57 +09:00 коммит произвёл Austen Lauria
родитель 4d92b5fcd8
Коммит ff746153d7

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

@ -15,7 +15,7 @@
* Copyright (c) 2010 IBM Corporation. All rights reserved.
* Copyright (c) 2012-2015 Los Alamos National Security, LLC.
* All rights reserved.
* Copyright (c) 2015 Research Organization for Information Science
* Copyright (c) 2015-2018 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
* $COPYRIGHT$
@ -43,7 +43,11 @@ static char *leak_msg = NULL;
static int condition(void *value);
static void action(void *key, void *value);
OBJ_CLASS_INSTANCE(mca_mpool_base_tree_item_t, opal_free_list_item_t, NULL, NULL);
static void mpbtcons(mca_mpool_base_tree_item_t *item) {
item->key = NULL;
}
OBJ_CLASS_INSTANCE(mca_mpool_base_tree_item_t, opal_free_list_item_t, mpbtcons, NULL);
/*
* use globals for the tree and the tree_item free list..