core: Remove incorrect usage of attribute_malloc.
authorCorey Farrell <git@cfware.com>
Tue, 13 Mar 2018 21:39:48 +0000 (17:39 -0400)
committerCorey Farrell <git@cfware.com>
Tue, 13 Mar 2018 21:39:48 +0000 (17:39 -0400)
commit9e488dd482b0cf69b8e7bb145cd8e22e43ba1f11
treee7f81b89479c70b24d33983274abf7c2ffc14bca
parent4b7872c9db995e99e91fc45adfd133094a51cde3
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