Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a couple of memory leaks

  • Loading branch information...
commit 0515cd3286eb7cc6cab977674e8892c6e1ca99e5 1 parent 27ecad5
@andreil andreil authored
Showing with 2 additions and 0 deletions.
  1. +1 −0  drivers/block-vhd.c
  2. +1 −0  drivers/tapdisk-fdreceiver.c
View
1  drivers/block-vhd.c
@@ -313,6 +313,7 @@ vhd_free(struct vhd_state *s)
if (_vhd_master != s || !_vhd_zeros)
return;
+ free(s->padbm_buf);
munmap(_vhd_zeros, _vhd_zsize);
_vhd_zsize = 0;
_vhd_zeros = NULL;
View
1  drivers/tapdisk-fdreceiver.c
@@ -177,6 +177,7 @@ td_fdreceiver_stop(struct td_fdreceiver *fdreceiver)
free(fdreceiver->path);
}
+ free(fdreceiver);
}
struct td_fdreceiver *
Please sign in to comment.
Something went wrong with that request. Please try again.