[asterisk-commits] rmudgett: branch 12 r404764 - /branches/12/tests/test_stasis.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 3 12:24:59 CST 2014


Author: rmudgett
Date: Fri Jan  3 12:24:57 2014
New Revision: 404764

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404764
Log:
test_stasis.c: Fix ref leak in normal execution path.

Modified:
    branches/12/tests/test_stasis.c

Modified: branches/12/tests/test_stasis.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/tests/test_stasis.c?view=diff&rev=404764&r1=404763&r2=404764
==============================================================================
--- branches/12/tests/test_stasis.c (original)
+++ branches/12/tests/test_stasis.c Fri Jan  3 12:24:57 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