]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add malloc attribute to memory allocation functions
authorDiego Fronza <diego@isc.org>
Thu, 1 Apr 2021 20:03:59 +0000 (17:03 -0300)
committerDiego Fronza <diego@isc.org>
Mon, 26 Apr 2021 14:32:17 +0000 (11:32 -0300)
commit54aa60eef812620eb9f478482c8e164726c4ffcc
tree01e36caf55a041312c94308faecc31357bd13805
parentefb9c540cd0f517a5c1ff7e62883e5855d0bc35f
Add malloc attribute to memory allocation functions

The malloc attribute allows compiler to do some optmizations on
functions that behave like malloc/calloc, like assuming that the
returned pointer do not alias other pointers.
configure.ac
lib/isc/include/isc/attributes.h
lib/isc/include/isc/mem.h