opal/event: release the opal event context when closing the event base
This fixes a series of leaks identified by valgrind. Since opal_event_base_open was creating the event base it follows that opal_event_base_close should release the event base. cmr=v1.8.2:reviewer=rhc This commit was SVN r31765.
Этот коммит содержится в:
родитель
13fd6ae774
Коммит
75fb6dbba9
@ -1,6 +1,9 @@
|
||||
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
||||
/*
|
||||
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
|
||||
* Copyright (c) 2014 Intel, Inc. All rights reserved.
|
||||
* Copyright (c) 2014 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -56,6 +59,9 @@ MCA_BASE_FRAMEWORK_DECLARE(opal, event, NULL, NULL, opal_event_base_open,
|
||||
|
||||
static int opal_event_base_close(void)
|
||||
{
|
||||
opal_event_base_free (opal_event_base);
|
||||
opal_event_base = NULL;
|
||||
|
||||
/* cleanup components even though they are statically opened */
|
||||
return mca_base_framework_components_close (&opal_event_base_framework,
|
||||
NULL);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user