fix: memory leaks in factorization

viewLog.html?buildId=9338&tab=buildResultsDiv&buildTypeId=bt7