Fix memory leak in JsonDeserializer when object key is repeated

This commit is contained in:
Benoit Blanchon
2023-05-25 09:21:54 +02:00
parent 48acf963fb
commit da45c4bc4f
2 changed files with 4 additions and 0 deletions
@@ -285,6 +285,8 @@ class JsonDeserializer {
slot->setKey(savedKey);
object.add(slot);
} else {
variantRelease(slot->data(), pool_);
}
// Parse value