]> git.ipfire.org Git - thirdparty/asterisk.git/commit
astobj2: Declare private variable data_size for AO2_DEBUG only. 32/4232/1
authorCorey Farrell <git@cfware.com>
Sat, 29 Oct 2016 15:19:53 +0000 (11:19 -0400)
committerCorey Farrell <git@cfware.com>
Sat, 29 Oct 2016 15:28:40 +0000 (10:28 -0500)
commit39ba7aa91f34622517391d6ec75df2840c789d8f
treef07ef5e05cfffe5201c193cd42467340d1caafd8
parentd84eaa46fadddf30a51c4ad41a4aa9a970efb0ca
astobj2: Declare private variable data_size for AO2_DEBUG only.

Every ao2 object contains storage for a private variable data_size,
though the value is never read if AO2_DEBUG is disabled.  This change
makes the variable conditional, reducing memory usage.

ASTERISK-26524 #close

Change-Id: If859929e507676ebc58b0f84247a4231e11da07f
main/astobj2.c