Changeset 8837 for branches/cu-security-branch/src/io/bmi/bmi_ib/ib.c
- Timestamp:
- 05/17/11 15:32:56 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/cu-security-branch/src/io/bmi/bmi_ib/ib.c
r8397 r8837 1558 1558 ibmap->port = port; 1559 1559 ibmap->reconnect_flag = reconnect_flag; 1560 ibmap->ref_count = 1; 1560 1561 1561 1562 return map; … … 1610 1611 if (ibmap->port == port && !strcmp(ibmap->hostname, hostname)) { 1611 1612 map = c->remote_map; 1613 ibmap->ref_count++; 1612 1614 break; 1613 1615 } … … 1954 1956 struct bmi_method_addr *map = param; 1955 1957 ib_method_addr_t *ibmap = map->method_data; 1956 free(ibmap->hostname); 1957 free(map); 1958 ibmap->ref_count--; 1959 if (ibmap->ref_count == 0) 1960 { 1961 free(ibmap->hostname); 1962 free(map); 1963 } 1958 1964 break; 1959 1965 }
