Changeset 4957:45ba4cf2abe3 in roaraudio for roard/container_framework.c
- Timestamp:
- 05/13/11 23:30:17 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/container_framework.c
r4708 r4957 43 43 return -1; 44 44 45 if ( (self = malloc(sizeof(struct cont_fw_parent_inst))) == NULL ) {45 if ( (self = roar_mm_malloc(sizeof(struct cont_fw_parent_inst))) == NULL ) { 46 46 *inst = NULL; 47 47 return -1; … … 54 54 55 55 if ( cont_pvio_open(&(self->vio), self) == -1 ) { 56 free(self);56 roar_mm_free(self); 57 57 return -1; 58 58 } … … 85 85 inst->pcb.close(inst); 86 86 87 free(inst);87 roar_mm_free(inst); 88 88 89 89 ROAR_DBG("cont_fw_delete(inst=%p) = 0", inst); … … 135 135 return -1; 136 136 137 if ( (self = malloc(sizeof(struct cont_fw_child_vio_inst))) == NULL )137 if ( (self = roar_mm_malloc(sizeof(struct cont_fw_child_vio_inst))) == NULL ) 138 138 return -1; 139 139 … … 149 149 if ( inst->pcb.new_child(inst, self) == -1 ) { 150 150 inst->child[i] = NULL; 151 free(self);151 roar_mm_free(self); 152 152 return -1; 153 153 } … … 229 229 } 230 230 231 free(inst);231 roar_mm_free(inst); 232 232 233 233 return r;
Note: See TracChangeset
for help on using the changeset viewer.