Memory leak in pagetree.cpp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cuneiform for Linux |
New
|
Undecided
|
Unassigned |
Bug Description
valgrind reports the following memory leak in cuneiform library.
Code fragment:
...
SETUP_
Inf.Tree.Root = (KNOTT*
KNOTT *pRoot=
...
After my brief review I have found out that Inf.Tree.Root may not be fee()'ed if:
* "alDebug" is defined, and OpenFullOutTige
* FlagBadBad is set to true in line 1901.
==29705== 18,386 bytes in 317 blocks are definitely lost in loss record 208 of 209
==29705== at 0x4823C4C: malloc (vg_replace_
==29705== by 0x51B226F: PageTree (pagetree.cpp:1845)
==29705== by 0x518D472: CRtfPage:
==29705== by 0x518BD1C: FullRtf (creatertf.cpp:150)
==29705== by 0x51A1C39: RFRMT_Formatter (frmt.cpp:224)
==29705== by 0x522A307: Recognize() (partrecog.cpp:825)
==29705== by 0x522B83B: PUMA_XFinalReco
==29705== by 0x18D91C: get_atom_
Additional info:
Sources: http://
osra_ocr.cpp: http://
Can somebody verify / confirm this bug, no?