Lines Matching full:new_map
477 rule_map *new_map = NULL;
481 new_map = calloc(1, (num_of_keys * sizeof(key_map)) + sizeof(rule_map));
482 if (!new_map)
485 new_map->length = num_of_keys;
486 new_map->lineno = lineno;
491 r = &(new_map->m[i]);
524 int l = (new_map->key) ? strlen(new_map->key) : 0;
528 tmp = realloc(new_map->key, l);
532 if (!new_map->key)
535 new_map->key = tmp;
537 strncat(new_map->key, k->key, key_len);
538 strncat(new_map->key, k->value, val_len);
545 if (new_map->key == NULL) {
550 return new_map;
555 if(new_map) {
556 rule_map_free(new_map, rule_map_destroy_key);