Apply buck's patch to fix cheetah memory leak.