diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-10 14:48:53 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-10 15:30:04 +0100 |
commit | fcf6efdf03a827544739e6d1cc66dfb42f27a8b1 (patch) | |
tree | cb063fd5371c623c50583e25a8da1d61916ba65f | |
parent | c62c298dc0901506fd8429e785fa8d673d876ac8 (diff) |
libmtd: don't leak temporary buffers
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | lib/libmtd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libmtd.c b/lib/libmtd.c index 5e3ac50..564e5c0 100644 --- a/lib/libmtd.c +++ b/lib/libmtd.c @@ -1140,6 +1140,7 @@ static int legacy_auto_oob_layout(const struct mtd_dev_info *mtd, int fd, memcpy(oob + start, tmp_buf + start, len); } + free(tmp_buf); return 0; } |