Add forgotten queue_free()s from bd3a2ae.

Discovered by mls.