channels/drive: fix double free