Fix (unrelated) memory leak discovered whilst investigating #6