Changeset 4014:2fee6bf2dc0c in roaraudio for roarclients/roarctl.c


Ignore:
Timestamp:
07/01/10 20:04:36 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed some resurce leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarctl.c

    r4012 r4014  
    736736  } 
    737737 
    738   if ( roar_stream_meta_set(con, &s, mode_i, &meta) == -1 ) 
     738  if ( roar_stream_meta_set(con, &s, mode_i, &meta) == -1 ) { 
     739   fclose(in); 
    739740   return -1; 
     741  } 
    740742 } 
    741743 
     
    801803  return -1; 
    802804 
     805 if ( (len = roar_stream_meta_list(con, &s, types, ROAR_META_MAX_PER_STREAM)) == -1 ) 
     806  return -1; 
     807 
    803808 if ( (out = fopen(file, "w")) == NULL ) 
    804   return -1; 
    805  
    806  if ( (len = roar_stream_meta_list(con, &s, types, ROAR_META_MAX_PER_STREAM)) == -1 ) 
    807809  return -1; 
    808810 
Note: See TracChangeset for help on using the changeset viewer.