From: <pa...@us...> - 2003-10-07 10:45:38
|
Update of /cvsroot/fuse-emulator/fuse-utils In directory sc8-pr-cvs1:/tmp/cvs-serv1785 Modified Files: tapeconv.c Log Message: Remove double-free bug if tape reading fails. Index: tapeconv.c =================================================================== RCS file: /cvsroot/fuse-emulator/fuse-utils/tapeconv.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** tapeconv.c 6 Jan 2003 01:13:17 -0000 1.11 --- tapeconv.c 7 Oct 2003 10:45:29 -0000 1.12 *************** *** 124,128 **** if( libspectrum_tape_read( *tape, buffer, length, type, filename ) ) { ! munmap( buffer, length ); libspectrum_tape_free( *tape ); return 1; } --- 124,128 ---- if( libspectrum_tape_read( *tape, buffer, length, type, filename ) ) { ! munmap( buffer, length ); return 1; } |