Clean up tutorial_4 (free memory and do error checking).
Clean up tutorial_4 (free memory and do error checking).

Change-Id: I3228ec21cc5ff92e8ed0c7a0f804bc5a35eb5183
Signed-off-by: Christopher M. Cantalupo <9cf3ecca60a3dd7112ab0e7250bedb8a752e3958@intel.com>

cmcantalupo/geopm,geopm/geopm,geopm/geopm,cmcantalupo/geopm,cmcantalupo/geopm,geopm/geopm,cmcantalupo/geopm,geopm/geopm,sssylvester/geopm,geopm/geopm,sssylvester/geopm,cmcantalupo/geopm,sssylvester/geopm,sssylvester/geopm