Buf fix in post transaction
Add increase/decrease memory used