X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=oslib%2Flibmtd.c;h=24e9db9cf062da307cd50cc11c17416152efdc73;hb=refs%2Ftags%2Ffio-3.1;hp=5b22d6a8abb453cfd015be3f3f1ea8aef35d4e82;hpb=7903bf87725b18495a06f7199342f167147712eb;p=fio.git diff --git a/oslib/libmtd.c b/oslib/libmtd.c index 5b22d6a8..24e9db9c 100644 --- a/oslib/libmtd.c +++ b/oslib/libmtd.c @@ -1116,6 +1116,7 @@ static int legacy_auto_oob_layout(const struct mtd_dev_info *mtd, int fd, len = mtd->oob_size - start; memcpy(oob + start, tmp_buf + start, len); } + free(tmp_buf); return 0; }