Applied buffer reuse, memory leak patch