From 02d8e6b6ff61fc042c3b9c7c404b9c446c67d8d4 Mon Sep 17 00:00:00 2001 From: favoritas37 Date: Sat, 15 Apr 2017 12:08:30 +0300 Subject: [PATCH] fixed memory leak at DataMatrix decoding --- .../datamatrix/decoder/DataMatrixDecodedBitStreamParser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zxing/zxing/datamatrix/decoder/DataMatrixDecodedBitStreamParser.cpp b/src/zxing/zxing/datamatrix/decoder/DataMatrixDecodedBitStreamParser.cpp index b4dbf2e..1485df7 100644 --- a/src/zxing/zxing/datamatrix/decoder/DataMatrixDecodedBitStreamParser.cpp +++ b/src/zxing/zxing/datamatrix/decoder/DataMatrixDecodedBitStreamParser.cpp @@ -410,6 +410,7 @@ void DecodedBitStreamParser::decodeBase256Segment(Ref bits, ostringst byteSegments.push_back(bytes[i]); result << (byte)bytes[i]; } + delete bytes; } } }