astobj2: Declare private variable data_size for AO2_DEBUG only.
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:19:53 +0000 (11:19 -0400)
commitad60927a40cf07bb60225c3613ae92b12aa92101
tree4db0d92c2568f1121f29c4d7531375c5c310e6d9
parent0ec5abe59286ed02377c2d7fe25d2e2e9babc58a
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