Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api/tesseractmain: Fix memory leak caused by exit()
When exit() is called from ParseArgs(), no destructors are executed for the auto variables vars_vec and vars_values. Making both variables static fixes the memory leaks, because now the destructors are always executed. Signed-off-by: Stefan Weil <sw@weilnetz.de>
- Loading branch information