Skip to content

Commit f949f98

Browse files
committed
Small pedantic fixes.
Signed-off-by: George Bosilca <[email protected]>
1 parent f46d2f2 commit f949f98

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

opal/mca/btl/tcp/btl_tcp_component.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ static int mca_btl_tcp_component_open(void)
361361
#if OPAL_ENABLE_IPV6
362362
mca_btl_tcp_component.tcp6_listen_sd = -1;
363363
#endif
364-
mca_btl_tcp_component.tcp_num_btls=0;
364+
mca_btl_tcp_component.tcp_num_btls = 0;
365365
mca_btl_tcp_component.tcp_addr_count = 0;
366-
mca_btl_tcp_component.tcp_btls=NULL;
366+
mca_btl_tcp_component.tcp_btls = NULL;
367367

368368
/* initialize objects */
369369
OBJ_CONSTRUCT(&mca_btl_tcp_component.tcp_lock, opal_mutex_t);

opal/mca/btl/tcp/btl_tcp_proc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,12 +732,12 @@ int mca_btl_tcp_proc_insert( mca_btl_tcp_proc_t* btl_proc,
732732
}
733733
free(proc_data->local_interfaces[i]);
734734
}
735-
free(proc_data->local_interfaces);
735+
free(proc_data->local_interfaces); proc_data->local_interfaces = NULL;
736736
proc_data->max_local_interfaces = 0;
737737

738-
free(proc_data->weights);
739-
free(proc_data->best_addr);
740-
free(proc_data->best_assignment);
738+
free(proc_data->weights); proc_data->weights = NULL;
739+
free(proc_data->best_addr); proc_data->best_addr = NULL;
740+
free(proc_data->best_assignment); proc_data->best_assignment = NULL;
741741

742742
OBJ_DESTRUCT(&_proc_data.local_kindex_to_index);
743743
OBJ_DESTRUCT(&_proc_data.peer_kindex_to_index);

0 commit comments

Comments
 (0)