commit | b27631b9aee760034ea4aecc5c052e880292c417 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Wed Jun 13 15:43:14 2012 -0700 |
committer | Nick Kralevich <nnk@google.com> | Wed Jun 13 15:43:14 2012 -0700 |
tree | de164c8c7dda506f635464d2838d99b0a9df78e4 | |
parent | c2f1d215b1786520fa8c371caa97f062e0bfb513 [diff] |
Don't mark realloc with __attribute__((malloc)) According to http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html realloc should NOT be marked with __attribute__((malloc)). Quoting: realloc-like functions do not have this property as the memory pointed to does not have undefined content. For reference, __mallocfunc is defined in sys/cdefs.h as: #define __mallocfunc __attribute__((malloc)) Change-Id: I56083542ba92e4608dd7c55fb5596a138eb50cc9