Fix (hopefully) memory leak.