[PATCH] blktrace: bad alloc in sendfile() handler
authorJens Axboe <axboe@suse.de>
Wed, 15 Feb 2006 13:04:07 +0000 (14:04 +0100)
committerJens Axboe <axboe@suse.de>
Wed, 15 Feb 2006 13:04:07 +0000 (14:04 +0100)
blktrace.c

index 3cecc1e6839f47547503bfcb899c2caaced76547..be9c9fda66339b8c59913063f733af6376246c04 100644 (file)
@@ -541,7 +541,6 @@ static int get_subbuf_sendfile(struct thread_information *tip,
        struct tip_subbuf *ts = malloc(sizeof(*ts));
        struct stat sb;
 
-       ts->buf = malloc(buf_size);
        ts->max_len = maxlen;
        ts->buf = NULL;