Changeset 1a3b953 in mainline for uspace/lib/bithenge/transform.c
- Timestamp:
- 2012-08-20T00:22:19Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0784869
- Parents:
- 5e514c0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/bithenge/transform.c
r5e514c0 r1a3b953 40 40 #include <stdlib.h> 41 41 #include "blob.h" 42 #include "os.h" 42 43 #include "print.h" 43 44 #include "transform.h" … … 62 63 assert(ops->apply || ops->prefix_apply); 63 64 assert(ops->destroy); 65 if (bithenge_should_fail()) 66 return ENOMEM; 64 67 self->ops = ops; 65 68 self->refs = 1; … … 371 374 assert(scope); 372 375 assert(i >= 0 && i < scope->num_params); 376 if (bithenge_should_fail()) { 377 bithenge_node_dec_ref(node); 378 return ENOMEM; 379 } 373 380 scope->params[i] = node; 374 381 return EOK; … … 487 494 assert(transform); 488 495 assert(bithenge_transform_num_params(transform) == 0); 496 497 if (bithenge_should_fail()) { 498 bithenge_transform_dec_ref(transform); 499 return ENOMEM; 500 } 489 501 490 502 barrier_transform_t *self = transform_as_barrier(base);
Note:
See TracChangeset
for help on using the changeset viewer.