LNet UDP Memoryleak lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- JZS · 2016-03-07 12:45 I have just noticed a heaptrc memory leak result when I use LUDP component in one of my projects, after connect and disconnect. It basically errors at "TLUdp.Connect". So tracking that I found FRootSock was not freed. LNet.PP (Line: 1170) 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 procedure TLUdp.Disconnect(const Forced: Boolean = False);begin  if Assigned(FRootSock) then begin    FRootSock.Disconnect(True); // true on UDP it always goes there anyways    FRootSock.Free;  //<<<<<<<<<<<<<<<<---------  Add this line, and the memory leak disappears    FRootSock := nil; // even if the old one exists, eventer takes care of it  end;end; In case someone else has same issue. ---------------------------------------------------------------------- JZS · 2016-03-07 14:03 PS: LNet SVN 2661 (0.6.6)