Skip to content

Commit 8a798fd

Browse files
author
David Wootton
committed
Fix memory leak in mca_btl_tcp_proc_handle_modex_addresses
Coverity CID 1458001 Signed-off-by: David Wootton <dwootton@us.ibm.com>
1 parent 4e4c43e commit 8a798fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

opal/mca/btl/tcp/btl_tcp_proc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,12 @@ static int mca_btl_tcp_proc_handle_modex_addresses(mca_btl_tcp_proc_t *btl_proc,
347347

348348
rc = mca_btl_tcp_proc_store_matched_interfaces(btl_proc, local_proc_is_left, graph, num_matched,
349349
matched_edges);
350-
if (rc) {
351-
goto cleanup;
352-
}
353350

354351
cleanup:
355352
if (NULL != graph) {
356353
opal_bp_graph_free(graph);
357354
}
355+
free(matched_edges);
358356
return rc;
359357
}
360358

0 commit comments

Comments
 (0)