]> git.ipfire.org Git - thirdparty/asterisk.git/commit
astobj2: Declare private variable data_size for AO2_DEBUG only. 33/4233/1
authorCorey Farrell <git@cfware.com>
Sat, 29 Oct 2016 15:31:15 +0000 (11:31 -0400)
committerCorey Farrell <git@cfware.com>
Sat, 29 Oct 2016 15:31:15 +0000 (11:31 -0400)
commitb96f18560b529b614d0773a060bc03ef73498c61
tree0cd584147e0c7b803084560a76d07323f79e5225
parent6b1c55dc9be90904363dbcf958a9fcc243c85629
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