add function to free noise context