cli: Don't free value pointer if type is STRING