From 7239f704420d232f632db201002a18e149597092 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Thu, 15 May 2025 15:42:18 +0200 Subject: [PATCH] QR decoding: fix memory leak --- c_mpos/src/quirc_decode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/c_mpos/src/quirc_decode.c b/c_mpos/src/quirc_decode.c index a3b58545..18717270 100644 --- a/c_mpos/src/quirc_decode.c +++ b/c_mpos/src/quirc_decode.c @@ -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);