mosaic: Free string variables after using them