diff --git a/src/flash/nand.c b/src/flash/nand.c index 51755aa0015e124668911e247a62345810ed42a3..2b3b51709b01efdf4f27801e73385ff1909d364d 100644 --- a/src/flash/nand.c +++ b/src/flash/nand.c @@ -317,9 +317,7 @@ int nand_build_bbt(struct nand_device_s *device, int first, int last) { u32 page = 0x0; int i; - u8 *oob; - - oob = malloc(6); + u8 oob[6]; if ((first < 0) || (first >= device->num_blocks)) first = 0;