storage->content = parse_storage_content((char*)content_name,&(storage->used_size));
storage->content_type = xbt_strdup(content_type);
storage->size = storage_type->size;
- storage->type_id = type_id;
+ storage->type_id = xbt_strdup(type_id);
xbt_lib_set(storage_lib, id, SURF_STORAGE_LEVEL, storage);
storage_t storage = r;
xbt_dict_free(&storage->content);
xbt_dynar_free(&storage->write_actions);
+ free(storage->type_id);
+ free(storage->content_type);
// generic resource
surf_resource_free(r);
}