Added missing free of value arrays.