ValuePairs: free the content of the value-pairs array not just the array itself

  * the not freed content leaded to memory leak