From 56e0b729c81df1c482483a5aaad189c9c0a502f7 Mon Sep 17 00:00:00 2001 From: Evan Tschannen Date: Mon, 6 Aug 2018 17:46:53 -0700 Subject: [PATCH] fix: we should not free statdata ourselves, it will be deleted by libeio itself --- fdbrpc/AsyncFileEIO.actor.h | 1 - 1 file changed, 1 deletion(-) diff --git a/fdbrpc/AsyncFileEIO.actor.h b/fdbrpc/AsyncFileEIO.actor.h index 0e18a93323..2de8d95cc8 100644 --- a/fdbrpc/AsyncFileEIO.actor.h +++ b/fdbrpc/AsyncFileEIO.actor.h @@ -357,7 +357,6 @@ private: EIO_STRUCT_STAT *statdata = (EIO_STRUCT_STAT *)r->ptr2; if (!statdata) error("FStatBufferError", fd, r); state int64_t size = statdata->st_size; - free(statdata); Void _ = wait( delay(0, taskID) ); return size; }