Changeset 5295:5914c84e72be in roaraudio for libroar/auth.c


Ignore:
Timestamp:
11/24/11 19:43:11 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

converted message (protocol) rutunes to use roar_mm_*() (Closes: #129)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/auth.c

    r5158 r5295  
    145145 
    146146 if ( mes.datalen > sizeof(mes.data) ) { 
    147   data = malloc(mes.datalen); 
     147  data = roar_mm_malloc(mes.datalen); 
    148148  if ( data == NULL ) 
    149149   return -1; 
     
    208208 
    209209 if ( data != NULL ) 
    210   free(data); 
     210  roar_mm_free(data); 
    211211 
    212212 ROAR_DBG("roar_auth_ask_server(con=%p, authmes=%p) = %i // next: %i", con, authmes, ret, authmes->type); 
     
    418418 
    419419 if ( (ames->len + 4) > sizeof(mes->data) ) { 
    420   *data = malloc(ames->len + 4); 
     420  *data = roar_mm_malloc(ames->len + 4); 
    421421  if ( *data == NULL ) 
    422422   return -1; 
Note: See TracChangeset for help on using the changeset viewer.