-- replying in-line to --
From: Gabriela Gibson [mailto:[email protected]] 
Sent: Friday, February 27, 2015 15:27
To: dev
Subject: Tests for malloc (console version)

[ ... ]

void xfree(void *ptr)
{
    if (ptr == NULL)
        return;
    free(ptr);
    ptr = NULL;
<orcmid>
    I don't think this assignment to ptr
    accomplishes anything.  It's legal,
    just doesn't go anywhere.  I bet the
    optimizer tosses it.
</orcmid>
}

[ ... ]


-- 
Visit my Coding Diary: http://gabriela-gibson.blogspot.com/

Reply via email to