From 8b29e27eadadb7990c28999ff0f41e576d86a562 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 13 Feb 2009 03:45:32 +0000 Subject: [PATCH] Some minor valgrind-inspired cleanups: fix some memory leaks This commit was SVN r20543. --- ompi/mca/coll/sm/coll_sm_component.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ompi/mca/coll/sm/coll_sm_component.c b/ompi/mca/coll/sm/coll_sm_component.c index 11d712a6ec..fd3820aaad 100644 --- a/ompi/mca/coll/sm/coll_sm_component.c +++ b/ompi/mca/coll/sm/coll_sm_component.c @@ -9,7 +9,7 @@ * University of Stuttgart. All rights reserved. * Copyright (c) 2004-2005 The Regents of the University of California. * All rights reserved. - * Copyright (c) 2008 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -273,6 +273,10 @@ static int sm_close(void) } mca_coll_sm_bootstrap_finalize(); + if (NULL != mca_coll_sm_component.sm_bootstrap_filename) { + free(mca_coll_sm_component.sm_bootstrap_filename); + mca_coll_sm_component.sm_bootstrap_filename = NULL; + } return OMPI_SUCCESS; }