Skip to content

Commit 7239f70

Browse files
QR decoding: fix memory leak
1 parent 3659f51 commit 7239f70

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

c_mpos/src/quirc_decode.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ static mp_obj_t qrdecode(mp_uint_t n_args, const mp_obj_t *args) {
5252
}
5353

5454
uint8_t *image;
55-
quirc_begin(qr, NULL, NULL);
5655
image = quirc_begin(qr, NULL, NULL);
5756
memcpy(image, bufinfo.buf, width * height);
5857
quirc_end(qr);

0 commit comments

Comments
 (0)