Changeset 4285

Show
Ignore:
Timestamp:
03/07/10 14:33:11 (6 months ago)
Author:
andoma
Message:

Plug a memory leak

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/showtime/src/fileaccess/fileaccess.c

    r4280 r4285  
    637637  } 
    638638 
    639   if((fh = fap->fap_open(fap, filename, errbuf, errlen)) == NULL) 
     639  fh = fap->fap_open(fap, filename, errbuf, errlen); 
     640  free(filename); 
     641 
     642  if(fh == NULL) 
    640643    return NULL; 
    641  
    642   free(filename); 
    643644 
    644645  size = fa_fsize(fh);