Fixing memory leak in CompHash.

Amazing what code still has memory leaks ...

Closes #987.
This commit is contained in:
Robin Sommer 2013-04-29 20:37:26 -07:00
parent 7f0e25bdef
commit 95cf662ff5

View file

@ -830,7 +830,10 @@ const char* CompositeHash::RecoverOneVal(const HashKey* k, const char* kp0,
}
for ( int i = 0; i < n; ++i )
{
tv->Assign(keys[i], t->IsSet() ? 0 : values[i]);
Unref(keys[i]);
}
pval = tv;
}