Merge "res_sorcery_realtime: Fix leak of sorcery object type."
authorJoshua Colp <jcolp@digium.com>
Tue, 30 Jun 2015 12:32:22 +0000 (07:32 -0500)
committerGerrit Code Review <gerrit2@gerrit.digium.api>
Tue, 30 Jun 2015 12:32:23 +0000 (07:32 -0500)
res/res_sorcery_realtime.c

index 65eb4b8..b2df298 100644 (file)
@@ -142,6 +142,8 @@ static struct ast_variable *sorcery_realtime_filter_objectset(struct ast_variabl
                }
        }
 
+       ao2_ref(object_type, -1);
+
        return objectset;
 }