News for hackers. Stuff that matters.
Re:A Story Of realloc (And Laziness) by mgraczyk on Sunday April 06, 2014 @09:00PM (#7544045)
Not to mention that this realloc incorrectly frees the input ptr on failure. The standard says

    "If the space cannot be allocated, the object [*ptr] shall remain unchanged."

There are no comments on this comment yet.