projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MIPS_USES_R4K_TLB typo
[qemu]
/
block-cloop.c
diff --git
a/block-cloop.c
b/block-cloop.c
index
f22253d
..
de90855
100644
(file)
--- a/
block-cloop.c
+++ b/
block-cloop.c
@@
-1,5
+1,5
@@
/*
/*
- * QEMU System Emulator block driver
+ * QEMU Block driver for CLOOP images
*
* Copyright (c) 2004 Johannes E. Schindelin
*
*
* Copyright (c) 2004 Johannes E. Schindelin
*
@@
-149,6
+149,8
@@
static void cloop_close(BlockDriverState *bs)
{
BDRVCloopState *s = bs->opaque;
close(s->fd);
{
BDRVCloopState *s = bs->opaque;
close(s->fd);
+ if(s->n_blocks>0)
+ free(s->offsets);
free(s->compressed_block);
free(s->uncompressed_block);
inflateEnd(&s->zstream);
free(s->compressed_block);
free(s->uncompressed_block);
inflateEnd(&s->zstream);