]> git.ipfire.org Git - thirdparty/asterisk.git/commit
core: Remove incorrect usage of attribute_malloc.
authorCorey Farrell <git@cfware.com>
Tue, 13 Mar 2018 21:37:12 +0000 (17:37 -0400)
committerCorey Farrell <git@cfware.com>
Tue, 13 Mar 2018 21:37:12 +0000 (17:37 -0400)
commitdc738b145fe17a8e40a3e95f01f7b9c208185cd9
tree35f99d7bcadde21832532825e3df6f9b45891e09
parent0a402dc85132fbddd8f8852af1819be670ca5505
core: Remove incorrect usage of attribute_malloc.

GCC documentation states that when __attribute__((malloc)) is used it
should not return storage which contains any valid pointers.  It
specifically mentions that realloc functions should not have the malloc
attribute, but this also means that complex initializers which could
contain initialized pointers should not use this attribute.

Change-Id: If507f33ffb3ca3b83b702196eb0e8215d27fc7d2
include/asterisk/channel.h
include/asterisk/datastore.h
include/asterisk/stringfields.h
include/asterisk/utils.h
main/channel.c
utils/extconf.c