Skip to content

Commit

Permalink
Fixed Resource Leak detected by Coverity
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
noahmetzger committed Apr 17, 2018
1 parent 69c8292 commit 7ff766c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ccmain/superscript.cpp
Expand Up @@ -475,6 +475,7 @@ WERD_RES *Tesseract::TrySuperscriptSplits(
delete core;
delete prefix;
delete suffix;
delete bb1;
return NULL;
}
recog_word_recursive(core);
Expand Down

0 comments on commit 7ff766c

Please sign in to comment.