Repair leak.

Repair the leak of database.