Skip to content

Commit 44820cf

Browse files
authored
Merge pull request #11179 from drwootton/tcp_proc_leak
Fix memory leak in mca_btl_tcp_proc_handle_modex_addresses: Coverity CID 1458001
2 parents c6fd8f4 + 8a798fd commit 44820cf

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)