Changeset 3063:955233719a84 in roaraudio for roard
- Timestamp:
- 12/26/09 20:36:31 (14 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/clients.c
r2828 r3063 51 51 for (i = 0; i < ROAR_CLIENTS_MAX; i++) { 52 52 if ( g_clients[i] == NULL ) { 53 n = malloc(sizeof(struct roar_client));53 n = roar_mm_malloc(sizeof(struct roar_client)); 54 54 if ( n != NULL ) { 55 55 n->pid = -1; … … 71 71 72 72 if ( roar_nnode_new(&(n->nnode), ROAR_SOCKET_TYPE_UNKNOWN) == -1 ) { 73 free(n);73 roar_mm_free(n); 74 74 return -1; 75 75 } … … 114 114 roar_nnode_free(&(g_clients[id]->nnode)); 115 115 116 free(g_clients[id]);116 roar_mm_free(g_clients[id]); 117 117 g_clients[id] = NULL; 118 118 -
roard/streams.c
r3042 r3063 68 68 for (i = 0; i < ROAR_STREAMS_MAX; i++) { 69 69 if ( g_streams[i] == NULL ) { 70 s = ROAR_STREAM_SERVER(n = ROAR_STREAM( malloc(sizeof(struct roar_stream_server))));70 s = ROAR_STREAM_SERVER(n = ROAR_STREAM(roar_mm_malloc(sizeof(struct roar_stream_server)))); 71 71 if ( n == NULL ) { 72 72 ROAR_ERR("streams_new(void): can not allocate memory for new stream: %s", strerror(errno)); … … 252 252 free(s->name); 253 253 254 free(s);254 roar_mm_free(s); 255 255 256 256 g_streams[id] = NULL;
Note: See TracChangeset
for help on using the changeset viewer.