static void vmdk_free_extents(BlockDriverState *bs)

{

    int i;

    BDRVVmdkState *s = bs->opaque;



    for (i = 0; i < s->num_extents; i++) {

        g_free(s->extents[i].l1_table);

        g_free(s->extents[i].l2_cache);

        g_free(s->extents[i].l1_backup_table);

    }

    g_free(s->extents);

}

static void vmdk_free_extents(BlockDriverState *bs)

{

    int i;

    BDRVVmdkState *s = bs->opaque;



    for (i = 0; i < s->num_extents; i++) {

        g_free(s->extents[i].l1_table);

        g_free(s->extents[i].l2_cache);

        g_free(s->extents[i].l1_backup_table);

    }

    g_free(s->extents);

}

        g_free(s->extents[i].l1_table);         g_free(s->extents[i].l2_cache);         g_free(s->extents[i].l1_backup_table);
static void FUNC_0(BlockDriverState *VAR_0)

{

    int VAR_1;

    BDRVVmdkState *s = VAR_0->opaque;



    for (VAR_1 = 0; VAR_1 < s->num_extents; VAR_1++) {

        g_free(s->extents[VAR_1].l1_table);

        g_free(s->extents[VAR_1].l2_cache);

        g_free(s->extents[VAR_1].l1_backup_table);

    }

    g_free(s->extents);

}

static void FUNC_0(BlockDriverState *VAR_0)
{ int VAR_1; BDRVVmdkState *s = VAR_0->opaque; for (VAR_1 = 0; VAR_1 < s->num_extents; VAR_1++) { g_free(s->extents[VAR_1].l1_table); g_free(s->extents[VAR_1].l2_cache); g_free(s->extents[VAR_1].l1_backup_table); } g_free(s->extents); }