void qmp_output_visitor_cleanup(QmpOutputVisitor *v)

{

    QStackEntry *e, *tmp;



    QTAILQ_FOREACH_SAFE(e, &v->stack, node, tmp) {

        QTAILQ_REMOVE(&v->stack, e, node);

        g_free(e);

    }



    qobject_decref(v->root);

    g_free(v);

}

void qmp_output_visitor_cleanup(QmpOutputVisitor *v)

{

    QStackEntry *e, *tmp;



    QTAILQ_FOREACH_SAFE(e, &v->stack, node, tmp) {

        QTAILQ_REMOVE(&v->stack, e, node);

        g_free(e);

    }



    qobject_decref(v->root);

    g_free(v);

}

void FUNC_0(QmpOutputVisitor *VAR_0)

{

    QStackEntry *e, *tmp;



    QTAILQ_FOREACH_SAFE(e, &VAR_0->stack, node, tmp) {

        QTAILQ_REMOVE(&VAR_0->stack, e, node);

        g_free(e);

    }



    qobject_decref(VAR_0->root);

    g_free(VAR_0);

}

void FUNC_0(QmpOutputVisitor *VAR_0)
{ QStackEntry *e, *tmp; QTAILQ_FOREACH_SAFE(e, &VAR_0->stack, node, tmp) { QTAILQ_REMOVE(&VAR_0->stack, e, node); g_free(e); } qobject_decref(VAR_0->root); g_free(VAR_0); }