Commit 8f68b7cc authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Utils: Fix memory leak in JsonMemoryPool

objects are freed, but their dtors are not called...

Detected by valgrind

Change-Id: Iec8d78c205e9b2722ee5a89941df96c3383b385b
Reviewed-by: default avatarNikolai Kosjar <>
Reviewed-by: default avatarFawzi Mohamed <>
parent 1679c07e
......@@ -42,8 +42,10 @@ using namespace Utils;
foreach (char *obj, _objs)
foreach (char *obj, _objs) {
reinterpret_cast<JsonValue *>(obj)->~JsonValue();
delete[] obj;
JsonValue::JsonValue(Kind kind)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment