We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a308fb5 commit 6b65c00Copy full SHA for 6b65c00
src/util/json_expr.cpp
@@ -274,7 +274,7 @@ json_objectt json(
274
type.id()==ID_c_bit_field?type.subtype():
275
type;
276
277
- languaget *lang;
+ languaget *lang=nullptr;
278
if(mode==ID_unknown)
279
lang=get_default_language();
280
else
@@ -295,6 +295,8 @@ json_objectt json(
295
result["data"]=json_stringt(integer2string(i));
296
297
assert(false && "could not convert data to integer");
298
+
299
+ delete lang;
300
}
301
else if(type.id()==ID_c_enum)
302
{
0 commit comments