ia64/xen-unstable

changeset 15808:b3689eb59c5e

blktap: Fix double-free in tapdisk cleanup.

Signed-off-by: Ben Guthro <bguthro@virtualiron.com>
Signed-off-by: Josh Nicholas <jnicholas@virtualiron.com>
author kfraser@localhost.localdomain
date Thu Aug 30 16:29:10 2007 +0100 (2007-08-30)
parents fba9884685fb
children d032a17aced2
files tools/blktap/drivers/tapdisk.c
line diff
     1.1 --- a/tools/blktap/drivers/tapdisk.c	Thu Aug 30 16:17:07 2007 +0100
     1.2 +++ b/tools/blktap/drivers/tapdisk.c	Thu Aug 30 16:29:10 2007 +0100
     1.3 @@ -863,11 +863,7 @@ int main(int argc, char *argv[])
     1.4  	ptr = fd_start;
     1.5  	while (ptr != NULL) {
     1.6  		s = ptr->s;
     1.7 -
     1.8  		unmap_disk(s);
     1.9 -		free(s->blkif);
    1.10 -		free(s->ring_info);
    1.11 -		free(s);
    1.12  		close(ptr->tap_fd);
    1.13  		ptr = ptr->next;
    1.14  	}