static void test_server_free(TestServer *server)

{

    int i;



    qemu_chr_delete(server->chr);



    for (i = 0; i < server->fds_num; i++) {

        close(server->fds[i]);

    }



    if (server->log_fd != -1) {

        close(server->log_fd);

    }



    unlink(server->socket_path);

    g_free(server->socket_path);





    g_free(server->chr_name);

    g_free(server);

}

static void test_server_free(TestServer *server)

{

    int i;



    qemu_chr_delete(server->chr);



    for (i = 0; i < server->fds_num; i++) {

        close(server->fds[i]);

    }



    if (server->log_fd != -1) {

        close(server->log_fd);

    }



    unlink(server->socket_path);

    g_free(server->socket_path);





    g_free(server->chr_name);

    g_free(server);

}

static void test_server_free(TestServer *server)
static void FUNC_0(TestServer *VAR_0)

{

    int VAR_1;



    qemu_chr_delete(VAR_0->chr);



    for (VAR_1 = 0; VAR_1 < VAR_0->fds_num; VAR_1++) {

        close(VAR_0->fds[VAR_1]);

    }



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

        close(VAR_0->log_fd);

    }



    unlink(VAR_0->socket_path);

    g_free(VAR_0->socket_path);





    g_free(VAR_0->chr_name);

    g_free(VAR_0);

}

static void FUNC_0(TestServer *VAR_0)
{ int VAR_1; qemu_chr_delete(VAR_0->chr); for (VAR_1 = 0; VAR_1 < VAR_0->fds_num; VAR_1++) { close(VAR_0->fds[VAR_1]); } if (VAR_0->log_fd != -1) { close(VAR_0->log_fd); } unlink(VAR_0->socket_path); g_free(VAR_0->socket_path); g_free(VAR_0->chr_name); g_free(VAR_0); }