Changeset 3063:955233719a84 in roaraudio for libroar/vio_cmd.c
- Timestamp:
- 12/26/09 20:36:31 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/vio_cmd.c
r1663 r3063 46 46 return -1; 47 47 48 if ( (state = malloc(sizeof(struct roar_vio_cmd_state))) == NULL )48 if ( (state = roar_mm_malloc(sizeof(struct roar_vio_cmd_state))) == NULL ) 49 49 return -1; 50 50 … … 132 132 133 133 // state->state = ROAR_VIO_CMD_STATE_CLOSED; 134 free(state);134 roar_mm_free(state); 135 135 136 136 return 0; … … 226 226 return -1; 227 227 228 if ( (state = malloc(sizeof(struct roar_vio_2popen_state))) == NULL )228 if ( (state = roar_mm_malloc(sizeof(struct roar_vio_2popen_state))) == NULL ) 229 229 return -1; 230 230 … … 282 282 free(state->child.cmd); 283 283 284 free(state);284 roar_mm_free(state); 285 285 286 286 return 0;
Note: See TracChangeset
for help on using the changeset viewer.