From: Jens Axboe Date: Wed, 15 Feb 2006 13:04:07 +0000 (+0100) Subject: [PATCH] blktrace: bad alloc in sendfile() handler X-Git-Tag: blktrace-0.99.1~32^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=d3a2c8aa133817ed63c49e32869a44660c30fc3e;p=blktrace.git [PATCH] blktrace: bad alloc in sendfile() handler --- diff --git a/blktrace.c b/blktrace.c index 3cecc1e..be9c9fd 100644 --- a/blktrace.c +++ b/blktrace.c @@ -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;