data buffer memory leak