Fix bad usage of free(3) found by coverity.
Fix bad usage of free(3) found by coverity.

adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp,adfernandes/pcp