Clean up ast_json with ast_json_unref
authorDavid M. Lee <dlee@digium.com>
Fri, 2 Aug 2013 17:29:52 +0000 (17:29 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 2 Aug 2013 17:29:52 +0000 (17:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396143 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/stasis_bridges.c

index a3eeef6..865134a 100644 (file)
@@ -384,7 +384,7 @@ void ast_bridge_publish_enter(struct ast_bridge *bridge, struct ast_channel *cha
                struct ast_channel *swap)
 {
        RAII_VAR(struct stasis_message *, msg, NULL, ao2_cleanup);
-       RAII_VAR(struct ast_json *, blob, NULL, ao2_cleanup);
+       RAII_VAR(struct ast_json *, blob, NULL, ast_json_unref);
 
        if (swap) {
                blob = ast_json_pack("{s: s}", "swap", ast_channel_uniqueid(swap));