[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] code smell (IntelliSense C6308): realloc could cause a memory leak (#335)

tim Rowledge tim at rowledge.org
Wed Jan 2 19:16:42 UTC 2019



> On 2019-01-02, at 7:12 AM, Nicolas Cellier <notifications at github.com> wrote:
> 
> Tim, to be sure about understanding: realloc does the right thing, it leaves the original alone.
> It's we, programmers that do not do the right thing: we overwrite a valid pointer with a NULL pointer. 

Yeah, I thought I had cancelled my email once I realised that was what was going on. Apparently I overwrote the pointer with nil....

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: ESBD: Erase System and Burn Documentation




More information about the Vm-dev mailing list