Switched to using g_slices for command buffers

- Fixed memory leak in client