What steps will reproduce the problem?
1. tesseract::TessBaseAPI api;
2. api.Init(NULL, "eng", tesseract::OEM_DEFAULT, NULL, 0, NULL, NULL, false);
3. api.End();
What is the expected output? What do you see instead?
No memory leak.
==24636== 24 bytes in 1 blocks are possibly lost in loss record 110 of 354
==24636== at 0x4C2ABBD: malloc (vg_replace_malloc.c:299)
==24636== by 0x5D7C4F3: STRING::AllocData(int, int) (strngs.cpp:50)
==24636== by 0x5D7C5E2: STRING::STRING() (strngs.cpp:102)
==24636== by 0x5D2E597: Dawg (dawg.h:197)
==24636== by 0x5D2E597: SquishedDawg (dawg.h:412)
==24636== by 0x5D2E597: tesseract::DawgLoader::Load() (dawg_cache.cpp:97)
==24636== by 0x5D2E972: _TessMemberResultCallback_0_0<true,
tesseract::Dawg*, tesseract::DawgLoader>::Run() (tesscallback.h:145)
==24636== by 0x5D2E848: Get (object_cache.h:78)
==24636== by 0x5D2E848: tesseract::DawgCache::GetSquishedDawg(STRING const&,
char const*, tesseract::TessdataType, int) (dawg_cache.cpp:55)
==24636== by 0x5D3623F: tesseract::Dict::Load(tesseract::DawgCache*)
(dict.cpp:212)
==24636== by 0x5CF910F: tesseract::Wordrec::program_editup(char const*,
bool, bool) (tface.cpp:54)
==24636== by 0x5C28C28: tesseract::Tesseract::init_tesseract_internal(char
const*, char const*, char const*, tesseract::OcrEngineMode, char**, int,
GenericVector<STRING> const*, GenericVector<STRING> const*, bool)
(tessedit.cpp:407)
==24636== by 0x5C2949E: tesseract::Tesseract::init_tesseract(char const*,
char const*, char const*, tesseract::OcrEngineMode, char**, int,
GenericVector<STRING> const*, GenericVector<STRING> const*, bool)
(tessedit.cpp:307)
==24636== by 0x5BDD4BB: tesseract::TessBaseAPI::Init(char const*, char
const*, tesseract::OcrEngineMode, char**, int, GenericVector<STRING> const*,
GenericVector<STRING> const*, bool) (baseapi.cpp:298)
What version of the product are you using? On what operating system?
tesseract 3.03 on Linux Mint 17
Please provide any additional information below.
Calling api.Clear() before api.End() does not help.
Original issue reported on code.google.com by joao.m.s...@gmail.com on 8 Dec 2014 at 11:11
Original issue reported on code.google.com by
joao.m.s...@gmail.com
on 8 Dec 2014 at 11:11