void qmp_output_visitor_cleanup(QmpOutputVisitor *v)

{

    QStackEntry *e, *tmp;



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

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

        if (e->value) {

            qobject_decref(e->value);

        }

        g_free(e);

    }



    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);

        if (e->value) {

            qobject_decref(e->value);

        }

        g_free(e);

    }



    g_free(v);

}

        if (e->value) {             qobject_decref(e->value);
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);

        if (e->value) {

            qobject_decref(e->value);

        }

        g_free(e);

    }



    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); if (e->value) { qobject_decref(e->value); } g_free(e); } g_free(VAR_0); }