337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
|
if (i >= last)
return false;
if ((bucket = malloc(sizeof(*bucket))) == NULL)
return false;
if ((bucket->key = cfw_copy(key)) == NULL)
return false;
bucket->obj = cfw_ref(obj);
bucket->hash = cfw_hash(key);
map->data[i] = bucket;
map->items++;
|
|
>
>
|
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
if (i >= last)
return false;
if ((bucket = malloc(sizeof(*bucket))) == NULL)
return false;
if ((bucket->key = cfw_copy(key)) == NULL) {
free(bucket);
return false;
}
bucket->obj = cfw_ref(obj);
bucket->hash = cfw_hash(key);
map->data[i] = bucket;
map->items++;
|