Changes in uspace/srv/ns/task.c [1c635d6:234f47e] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/ns/task.c

    r1c635d6 r234f47e  
    231231int ns_task_id_intro(ipc_call_t *call)
    232232{
    233        
    234233        task_id_t id = MERGE_LOUP32(IPC_GET_ARG1(*call), IPC_GET_ARG2(*call));
    235 
     234       
    236235        ht_link_t *link = hash_table_find(&phone_to_id, &call->in_phone_hash);
    237236        if (link != NULL)
    238                 return EEXISTS;
     237                return EEXIST;
    239238       
    240239        p2i_entry_t *entry = (p2i_entry_t *) malloc(sizeof(p2i_entry_t));
     
    243242       
    244243        hashed_task_t *ht = (hashed_task_t *) malloc(sizeof(hashed_task_t));
    245         if (ht == NULL)
     244        if (ht == NULL) {
     245                free(entry);
    246246                return ENOMEM;
     247        }
    247248       
    248249        /*
Note: See TracChangeset for help on using the changeset viewer.