Fix resource leak.