Fix memory leak found in CID #1405876.