Fix compilation warning, indentation, and added EUCA_FREE()
EUCA-5285

Squashed commit of the following:

commit 17947a9ea924e04dcf9da74fb3a6f162953ebe53
Author: chuck <chuck@eucalyptus.com>
Date:   Fri Mar 1 13:00:34 2013 -0800

    Fix buffer overflow issue
    EUCA-5285

commit 29a5ec1eb5cc29e0682c1dc2b9c22a726e8480a9
Author: chuck <chuck@eucalyptus.com>
Date:   Fri Mar 1 12:44:39 2013 -0800

    Fix compilation warning, indentation, and added EUCA_FREE()
    EUCA-5285