fix mem alloc issue in TskAutoDb::openImage