Skip to content

Commit 6e35cfc

Browse files
committed
btl/sm: fix misc memory leak
as reported by Coverity with CID 1415105 Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 0cbd52b commit 6e35cfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opal/mca/btl/sm/btl_sm_component.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Copyright (c) 2011-2014 NVIDIA Corporation. All rights reserved.
1818
* Copyright (c) 2010-2012 IBM Corporation. All rights reserved.
1919
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
20-
* Copyright (c) 2014-2015 Research Organization for Information Science
20+
* Copyright (c) 2014-2017 Research Organization for Information Science
2121
* and Technology (RIST). All rights reserved.
2222
* $COPYRIGHT$
2323
*
@@ -71,6 +71,7 @@ static int mca_btl_sm_component_register(void)
7171
if (strcmp(names[i], "sm") == 0) {
7272
opal_show_help("help-mpi-btl-sm.txt", "btl sm is dead",
7373
true);
74+
opal_argv_free(names);
7475
return OPAL_ERROR;
7576
}
7677
}

0 commit comments

Comments
 (0)