Patch for memory leak in valuepair.c