fix another leak

free all the buffers if read fails we are exiting