spec: fix memory problem
@@ -444,8 +444,11 @@ static void validateEmptyArray (KeySet * ks, Key * arraySpec, Key * parentKey, O
ksDel (subKeys);
keyDel (parentLookup);
+ if (!immediate)
+ {
keySetMeta (arrayParent, "internal/spec/array/validated", "");
}
+}
static void validateArrayMembers (KeySet * ks, Key * arraySpec)
{
