main: Fix two memory leaks
main: Fix two memory leaks

When Tesseract terminates by calling the exit function,
the destructor of any local auto variable is not called.

Fix two cases by using static variables.

Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>

jbarlow83/tesseract,stweil/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,amitdo/tesseract,stweil/tesseract,jbarlow83/tesseract,amitdo/tesseract,tesseract-ocr/tesseract,tesseract-ocr/tesseract,stweil/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract,stweil/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,jbarlow83/tesseract,jbarlow83/tesseract,UB-Mannheim/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,jbarlow83/tesseract,stweil/tesseract,UB-Mannheim/tesseract,UB-Mannheim/tesseract