Changeset 4997:0a1398101281 in roaraudio for roarclients/roarbidir.c


Ignore:
Timestamp:
05/23/11 21:29:19 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fix small theoretical resource leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarbidir.c

    r4883 r4997  
    8888 
    8989 if ( (fh = roar_simple_stream(rate, channels, bits, codec, server, ROAR_DIR_BIDIR, "roarbidir")) == -1 ) { 
    90   fprintf(stderr, "Error: can not start playback\n"); 
     90  fprintf(stderr, "Error: can not start playback: %s\n", roar_error2str(roar_error)); 
     91  if ( in != -1 ) 
     92   close(in); 
    9193  return 1; 
    9294 } 
Note: See TracChangeset for help on using the changeset viewer.