I think there might be a memory leak with the move (i.e move memory) function on linux (latest Delphi version)

I think there might be a memory leak with the move (i.e move memory) function on linux (latest Delphi version)

Comments

  1. Lars Fosdal That's nothing at all to do with ARC. If you write beyond the ends of the memory block then anything can happen. No need for ARC to be involved.

    ReplyDelete
  2. David Heffernan Again, I agree, and if it is an overwrite, that can lead to bogus ref count data, which again can lead to no free where a free should have happened.

    ReplyDelete
  3. Move can always leak memory - when you override some references to managed types.

    ReplyDelete

Post a Comment