Changed PAPI_cleanup_eventset to call PAPI_sprofil instead of PAPI_profil as this could cause User supplied memory to be freed.
Changed PAPI_cleanup_eventset to call PAPI_sprofil instead of PAPI_profil
as this could cause User supplied memory to be freed.

arm-hpc/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi,pyrovski/papi,pyrovski/papi,arm-hpc/papi,pyrovski/papi,arm-hpc/papi,arm-hpc/papi,pyrovski/papi