Fixed division, fixed memory leak.