]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix minor reference leaks in app_skel and TEST_FRAMEWORK
authorCorey Farrell <git@cfware.com>
Sun, 13 Jul 2014 16:43:37 +0000 (16:43 +0000)
committerCorey Farrell <git@cfware.com>
Sun, 13 Jul 2014 16:43:37 +0000 (16:43 +0000)
* Cleanup games object in app_skel.
* Cleanup stasis subscription to TEST_FRAMEWORK in manager.c (12+).

Review: https://reviewboard.asterisk.org/r/3757/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@418465 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_skel.c

index ca96fa08f7322673f85eb2996e4945b6f91b1eee..a184ea048bb3991bbadd593a5077c4fb9e19ae9b 100644 (file)
@@ -645,6 +645,7 @@ static int unload_module(void)
        ast_cli_unregister_multiple(skel_cli, ARRAY_LEN(skel_cli));
        aco_info_destroy(&cfg_info);
        ao2_global_obj_release(globals);
+       ao2_cleanup(games);
        return ast_unregister_application(app);
 }