1
1

Some minor valgrind-inspired cleanups: fix some memory leaks

This commit was SVN r20543.
Этот коммит содержится в:
Jeff Squyres 2009-02-13 03:45:32 +00:00
родитель 91415c2996
Коммит 8b29e27ead

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

@ -9,7 +9,7 @@
* University of Stuttgart. All rights reserved. * University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2008 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -273,6 +273,10 @@ static int sm_close(void)
} }
mca_coll_sm_bootstrap_finalize(); 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; return OMPI_SUCCESS;
} }