blktap: Fix double-free in tapdisk cleanup.

Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: Josh Nicholas <jnicholas@virtualiron.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-08-30 16:29:10 +01:00
1 parent abfd726ed8
commit c1d183f3dd
1 file changed
-4
-4
View File
@@ -863,11 +863,7 @@ int main(int argc, char *argv[])
ptr = fd_start;
while (ptr != NULL) {
s = ptr->s;
unmap_disk(s);
free(s->blkif);
free(s->ring_info);
free(s);
close(ptr->tap_fd);
ptr = ptr->next;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.