[PATCH] D31295: Add free_on_realloc_zero=true flag for compatibility with allocators which allow a realloc(p, 0) and don't free the pointer.

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 23 13:45:42 PDT 2017


kcc added a comment.

> The standard says the behaviour is implementation defined, IIRC (I can quote later).

Yes, please!

> I can keep this patch private if it's too much of a problem.

It's not too much of a problem, and I *am* interested to have reasonable patches upstream. 
Let's see what the standard says.


https://reviews.llvm.org/D31295





More information about the llvm-commits mailing list