Changeset 4975:1b8be0a0ba5f in roaraudio for libroar/vio_cmd.c
- Timestamp:
- 05/16/11 15:16:33 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/vio_cmd.c
r4956 r4975 62 62 63 63 if ( reader != NULL ) 64 state->reader.cmd = strdup(reader);64 state->reader.cmd = roar_mm_strdup(reader); 65 65 66 66 state->writer.pid = -1; … … 69 69 70 70 if ( writer != NULL ) 71 state->writer.cmd = strdup(writer);71 state->writer.cmd = roar_mm_strdup(writer); 72 72 73 73 // init state … … 125 125 126 126 if ( state->reader.cmd != NULL ) 127 free(state->reader.cmd);127 roar_mm_free(state->reader.cmd); 128 128 129 129 if ( state->writer.cmd != NULL ) 130 free(state->writer.cmd);130 roar_mm_free(state->writer.cmd); 131 131 132 132 roar_vio_close(state->next); … … 241 241 state->child.out = -1; 242 242 243 state->child.cmd = strdup(command);243 state->child.cmd = roar_mm_strdup(command); 244 244 245 245 // init state … … 281 281 282 282 if ( state->child.cmd != NULL ) 283 free(state->child.cmd);283 roar_mm_free(state->child.cmd); 284 284 285 285 roar_mm_free(state);
Note: See TracChangeset
for help on using the changeset viewer.