Avoid memory leak.