Fixed compilation problem under RHEL 6.  Fixed a leak.