1 |
/* |
/* |
2 |
* QEMU System Emulator block driver |
* QEMU Block driver for CLOOP images |
3 |
* |
* |
4 |
* Copyright (c) 2004 Johannes E. Schindelin |
* Copyright (c) 2004 Johannes E. Schindelin |
5 |
* |
* |
149 |
{ |
{ |
150 |
BDRVCloopState *s = bs->opaque; |
BDRVCloopState *s = bs->opaque; |
151 |
close(s->fd); |
close(s->fd); |
152 |
|
if(s->n_blocks>0) |
153 |
|
free(s->offsets); |
154 |
free(s->compressed_block); |
free(s->compressed_block); |
155 |
free(s->uncompressed_block); |
free(s->uncompressed_block); |
156 |
inflateEnd(&s->zstream); |
inflateEnd(&s->zstream); |