[asterisk-commits] rmudgett: trunk r404783 - in /trunk: ./ tests/test_stasis.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 3 12:33:21 CST 2014
Author: rmudgett
Date: Fri Jan 3 12:33:19 2014
New Revision: 404783
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404783
Log:
test_stasis.c: Fix ref leak in normal execution path.
........
Merged revisions 404764 from http://svn.asterisk.org/svn/asterisk/branches/12
Modified:
trunk/ (props changed)
trunk/tests/test_stasis.c
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-12-merged (original)
+++ branch-12-merged Fri Jan 3 12:33:19 2014
@@ -1,1 +1,1 @@
-/branches/12:1-398558,398560-398577,398579-399305,399307-401390,401392-403290,403292-403778,403781-404568,404581,404592,404605,404613,404652,404663,404676,404725,404737,404781
+/branches/12:1-398558,398560-398577,398579-399305,399307-401390,401392-403290,403292-403778,403781-404568,404581,404592,404605,404613,404652,404663,404676,404725,404737,404764,404781
Modified: trunk/tests/test_stasis.c
URL: http://svnview.digium.com/svn/asterisk/trunk/tests/test_stasis.c?view=diff&rev=404783&r1=404782&r2=404783
==============================================================================
--- trunk/tests/test_stasis.c (original)
+++ trunk/tests/test_stasis.c Fri Jan 3 12:33:19 2014
@@ -810,6 +810,7 @@
ast_test_validate(test, 2 == actual_len);
/* Check the cache */
+ ao2_cleanup(cache_dump);
cache_dump = stasis_cache_dump(cache, NULL);
ast_test_validate(test, NULL != cache_dump);
ast_test_validate(test, 2 == ao2_container_count(cache_dump));
@@ -829,6 +830,7 @@
ast_test_validate(test, 3 == actual_len);
/* Check the cache */
+ ao2_cleanup(cache_dump);
cache_dump = stasis_cache_dump(cache, NULL);
ast_test_validate(test, NULL != cache_dump);
ast_test_validate(test, 2 == ao2_container_count(cache_dump));
@@ -848,6 +850,7 @@
ast_test_validate(test, 4 == actual_len);
/* Check the cache */
+ ao2_cleanup(cache_dump);
cache_dump = stasis_cache_dump(cache, NULL);
ast_test_validate(test, NULL != cache_dump);
ast_test_validate(test, 1 == ao2_container_count(cache_dump));
More information about the asterisk-commits
mailing list