res_sorcery_realtime: Fix leak of sorcery object type.
[asterisk/asterisk.git] / 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;
 }
 
        return objectset;
 }