Patch from William Cohen fixing a potential problem found by a static analysis tool where we could possibly pass a NULL pointer to free_notes().
Patch from William Cohen fixing a potential problem found by
a static analysis tool where we could possibly pass a NULL pointer
to free_notes().

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