buf with operator delete fixes