ucx/properties.c

changeset 173
31a8682fffb7
parent 152
3238f65db163
child 177
11ad03783baf
equal deleted inserted replaced
172:7084e8e8433c 173:31a8682fffb7
204 value = sstrdup_a(map->allocator, value); 204 value = sstrdup_a(map->allocator, value);
205 if(!value.ptr) { 205 if(!value.ptr) {
206 return 1; 206 return 1;
207 } 207 }
208 if(ucx_map_sstr_put(map, name, value.ptr)) { 208 if(ucx_map_sstr_put(map, name, value.ptr)) {
209 map->allocator->free(map->allocator->pool, value.ptr); 209 alfree(map->allocator, value.ptr);
210 return 1; 210 return 1;
211 } 211 }
212 } 212 }
213 if (parser->error) { 213 if (parser->error) {
214 return parser->error; 214 return parser->error;

mercurial