oprofile: Free potentially owned tasks in case of errors