Show
Ignore:
Timestamp:
05/17/11 15:32:56 (2 years ago)
Author:
nlmills
Message:

merge with Orange-Branch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/cu-security-branch/src/io/bmi/bmi_ib/ib.c

    r8397 r8837  
    15581558    ibmap->port = port; 
    15591559    ibmap->reconnect_flag = reconnect_flag; 
     1560    ibmap->ref_count = 1; 
    15601561 
    15611562    return map; 
     
    16101611            if (ibmap->port == port && !strcmp(ibmap->hostname, hostname)) { 
    16111612               map = c->remote_map; 
     1613               ibmap->ref_count++; 
    16121614               break; 
    16131615            } 
     
    19541956        struct bmi_method_addr *map = param; 
    19551957        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        } 
    19581964        break; 
    19591965    }