Removed memory leak from Note_create/Destroy pair of functions.