Skip to content

Commit e84b352

Browse files
committed
oob/tcp: plug a memory leak
as reported by Coverity with CID 1196711
1 parent d1e1ec5 commit e84b352

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

orte/mca/oob/tcp/oob_tcp_component.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Copyright (c) 2011 Oak Ridge National Labs. All rights reserved.
1717
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
1818
* Copyright (c) 2014 NVIDIA Corporation. All rights reserved.
19-
* Copyright (c) 2015 Research Organization for Information Science
19+
* Copyright (c) 2015-2016 Research Organization for Information Science
2020
* and Technology (RIST). All rights reserved.
2121
* $COPYRIGHT$
2222
*
@@ -824,6 +824,7 @@ static int component_set_addr(orte_process_name_t *peer,
824824
ports = strrchr(tcpuri, ':');
825825
if (NULL == ports) {
826826
ORTE_ERROR_LOG(ORTE_ERR_NOT_FOUND);
827+
free(tcpuri);
827828
continue;
828829
}
829830
*ports = '\0';

0 commit comments

Comments
 (0)