Memleak on fpjson example lazarus / 62-General ---------------------------------------------------------------------- soerensen3 · 2017-11-27 16:05 Dear all, the second example of the fpjson examples in the official doc causes a memleak on https://www.freepascal.org/docs-html/fcl/fpjson/index.html If you compile with -gh you can see what I mean. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   D:=GetJSON('{ "Children" : ['+             '  { "Age" : 23, '+           '    "Names" : { "LastName" : "Rodriquez",'+             '              "FirstName" : "Roberto" }},'+             '  { "Age" : 20,'+           '    "Names" : { "LastName" : "Rodriquez",'+             '              "FirstName" : "Maria" }}'+             '  ]}');  E:=D.FindPath('Children[1].Names.FirstName');  Writeln(E.AsJSON);  FreeAndNil( D ); //<--- This line is missing! In general I think the documentation should say something about the management of descendants of TJSONData (Or did I miss something?). As far as I know it  it is in the responsibility of the user to free the root element but child elements get freed automatically. Is there some way you can suggest changes to the documentation? ---------------------------------------------------------------------- balazsszekely · 2017-11-27 16:11 QuoteIs there some way you can suggest changes to the documentation?Mailing list, bugtracker. ---------------------------------------------------------------------- soerensen3 · 2017-11-27 17:46 I filed a bug report: https://bugs.freepascal.org/view.php?id=32737