mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 22:43:45 +08:00
classify/adaptmatch: Fix memory leak
Coverity report: CID 1164738 (#1 of 1): Resource leak (RESOURCE_LEAK) 7. leaked_storage: Variable sample going out of scope leaks the storage it points to. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
bf334e0477
commit
963b935e80
@ -1001,6 +1001,8 @@ void Classify::DisplayAdaptedChar(TBLOB* blob, INT_CLASS_STRUCT* int_class) {
|
|||||||
6 | 0x19, matcher_debug_separate_windows);
|
6 | 0x19, matcher_debug_separate_windows);
|
||||||
UpdateMatchDisplay();
|
UpdateMatchDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete sample;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user