You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
QR decoding: fix memory leak
This commit is contained in:
@@ -52,7 +52,6 @@ static mp_obj_t qrdecode(mp_uint_t n_args, const mp_obj_t *args) {
|
||||
}
|
||||
|
||||
uint8_t *image;
|
||||
quirc_begin(qr, NULL, NULL);
|
||||
image = quirc_begin(qr, NULL, NULL);
|
||||
memcpy(image, bufinfo.buf, width * height);
|
||||
quirc_end(qr);
|
||||
|
||||
Reference in New Issue
Block a user