Attempt to avoid a memory leak.