Remove memory leak from notification_wait_response