correcting Resource leak

Added fix to update sym flags, cp_obj load addresses, and add functions after analysis

fix ressource leaks

fix ressource leaks

fix ressource leaks

fix ressource leaks

fix ressource leaks

fix ressource leaks

fix ressource leaks

fix ressource leaks

fix ressource leaks

fix ressource leaks