now piece data buffer is set as null when write is failed for avoid memory leaks
now piece data buffer is set as null when write is failed for avoid memory leaks

mpetazzoni/ttorrent,JetBrains/ttorrent-lib,JetBrains/ttorrent-lib,mpetazzoni/ttorrent