Skip to content

Commit 7ff766c

Browse files
committed
Fixed Resource Leak detected by Coverity
CID: 1375399 Variable bb1 going out of scope leaks the storage it points to Signed-off-by: Noah Metzger <noah.metzger@bib.uni-mannheim.de>
1 parent 69c8292 commit 7ff766c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ccmain/superscript.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ WERD_RES *Tesseract::TrySuperscriptSplits(
475475
delete core;
476476
delete prefix;
477477
delete suffix;
478+
delete bb1;
478479
return NULL;
479480
}
480481
recog_word_recursive(core);

0 commit comments

Comments
 (0)