Correct test_cel cleanup.
authorDavid M. Lee <dlee@digium.com>
Thu, 11 Jul 2013 15:37:51 +0000 (15:37 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 11 Jul 2013 15:37:51 +0000 (15:37 +0000)
commitc2bb638f1f2e8e9c95dd6cf3c0a51d5d17ebde6b
tree54a48e794d7818b2a3a3aebb10f7002b7b6b43f9
parent684481b74cb12d436200129818f57122797115c7
Correct test_cel cleanup.

When I corrected the CEL test crash in r394037, I didn't quite pay attention
to how the globals and locals were being shuffled around in the cleanup
callback. I removed the nulling of the global variables, which caused them
to be double cleaned.

This patch puts the global nulling code back (since the vars are cleaned up
by RAII_VARs), and removes the explicit ao2_cleanup() (since they were no-ops,
because the variables had just been nulled).

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@394089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
tests/test_cel.c