journal-remote: fix memleak