1.1 --- a/ucx/properties.c Wed Jul 17 12:32:03 2013 +0200 1.2 +++ b/ucx/properties.c Wed Jul 17 15:56:01 2013 +0200 1.3 @@ -199,17 +199,11 @@ 1.4 sstr_t name; 1.5 sstr_t value; 1.6 while(ucx_properties_next(parser, &name, &value)) { 1.7 - name = sstrdup_alloc(map->allocator, name); 1.8 - if(!name.ptr) { 1.9 - return 1; 1.10 - } 1.11 - value = sstrdup_alloc(map->allocator, value); 1.12 + value = sstrdupa(map->allocator, value); 1.13 if(!value.ptr) { 1.14 - map->allocator->free(map->allocator->pool, value.ptr); 1.15 return 1; 1.16 } 1.17 if(ucx_map_sstr_put(map, name, value.ptr)) { 1.18 - map->allocator->free(map->allocator->pool, name.ptr); 1.19 map->allocator->free(map->allocator->pool, value.ptr); 1.20 return 1; 1.21 }