static void qemu_chr_free_common(CharDriverState *chr)

{




    g_free(chr->filename);

    g_free(chr->label);

    if (chr->logfd != -1) {

        close(chr->logfd);


    qemu_mutex_destroy(&chr->chr_write_lock);

    g_free(chr);

static void qemu_chr_free_common(CharDriverState *chr)

{




    g_free(chr->filename);

    g_free(chr->label);

    if (chr->logfd != -1) {

        close(chr->logfd);


    qemu_mutex_destroy(&chr->chr_write_lock);

    g_free(chr);

static void FUNC_0(CharDriverState *VAR_0)

{




    g_free(VAR_0->filename);

    g_free(VAR_0->label);

    if (VAR_0->logfd != -1) {

        close(VAR_0->logfd);


    qemu_mutex_destroy(&VAR_0->chr_write_lock);

    g_free(VAR_0);

static void FUNC_0(CharDriverState *VAR_0)
{ g_free(VAR_0->filename); g_free(VAR_0->label); if (VAR_0->logfd != -1) { close(VAR_0->logfd); qemu_mutex_destroy(&VAR_0->chr_write_lock); g_free(VAR_0);