Changeset 3f2ea63 in mainline
- Timestamp:
- 2012-08-01T20:44:10Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 23db8aa
- Parents:
- 78d3a00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/expression.c
r78d3a00 r3f2ea63 285 285 int rc; 286 286 const_expression_t *self = malloc(sizeof(*self)); 287 if (!self) 288 return ENOMEM; 287 if (!self) { 288 rc = ENOMEM; 289 goto error; 290 } 289 291 290 292 rc = bithenge_init_expression(const_as_expression(self), 291 293 &const_expression_ops); 292 if (rc != EOK) { 293 free(self); 294 return rc; 295 } 294 if (rc != EOK) 295 goto error; 296 296 297 297 self->node = node; 298 298 *out = const_as_expression(self); 299 299 return EOK; 300 301 error: 302 free(self); 303 bithenge_node_dec_ref(node); 304 return rc; 300 305 } 301 306
Note:
See TracChangeset
for help on using the changeset viewer.