Ignore:
Timestamp:
05/13/11 23:30:17 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use roar_mm_*() where possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/roard/protocol-esound.c

    r4708 r4957  
    9393  if ( cur->cmd == cmd ) { 
    9494   if ( cur->datalen > 0 ) { 
    95     if ( (data = malloc(cur->datalen)) == NULL ) { 
     95    if ( (data = roar_mm_malloc(cur->datalen)) == NULL ) { 
    9696     // we will do a protocol error in case we do not drop the client 
    9797     clients_delete(client); 
     
    103103 
    104104     if ( ret < 1 ) { 
    105       free(data); 
     105      roar_mm_free(data); 
    106106      clients_delete(client); 
    107107      return -1; 
     
    123123 
    124124   if ( data != NULL ) 
    125     free(data); 
     125    roar_mm_free(data); 
    126126 
    127127   return r; 
Note: See TracChangeset for help on using the changeset viewer.