I guess it is enough to set
```C
out->queue.next = NULL;
```