Skip to content

Commit 6b9343a

Browse files
committed
plm/rsh: plug a memory leak
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 8ba92d7 commit 6b9343a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

orte/mca/plm/rsh/plm_rsh_module.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
1616
* Copyright (c) 2011 IBM Corporation. All rights reserved.
1717
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
18-
* Copyright (c) 2015-2016 Research Organization for Information Science
18+
* Copyright (c) 2015-2017 Research Organization for Information Science
1919
* and Technology (RIST). All rights reserved.
2020
* $COPYRIGHT$
2121
*
@@ -1343,6 +1343,10 @@ static int rsh_finalize(void)
13431343
}
13441344
}
13451345
}
1346+
free(mca_plm_rsh_component.agent_path);
1347+
free(rsh_agent_path);
1348+
opal_argv_free(mca_plm_rsh_component.agent_argv);
1349+
opal_argv_free(rsh_agent_argv);
13461350

13471351
return rc;
13481352
}

0 commit comments

Comments
 (0)