From 4c074da1c29a08d096d5b1efc7c4ae1f0f0761c5 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Thu, 12 Feb 2015 12:27:04 -0800 Subject: [PATCH] usnic: fix minor memory leak This was CID 1269853. --- opal/mca/btl/usnic/btl_usnic_stats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opal/mca/btl/usnic/btl_usnic_stats.c b/opal/mca/btl/usnic/btl_usnic_stats.c index c7bbb65eca..6e9051284e 100644 --- a/opal/mca/btl/usnic/btl_usnic_stats.c +++ b/opal/mca/btl/usnic/btl_usnic_stats.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2014 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2013-2015 Cisco Systems, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -427,6 +427,7 @@ static void setup_mpit_pvars_enum(void) for (int i = 0; i < mca_btl_usnic_component.num_modules; ++i) { free((char*) devices[i].string); } + free(devices); /* The devices_enum has been RETAIN'ed by the pvar, so we can RELEASE it here, and the enum will be destroyed when the pvar