expressions: free allocated expressions after the end of the function