Fixed some memory leaks.
Fixed bug. Where last pice from router is first in my stack, i free unitialized buffers