Fix a memory leak in deletion of AqlValues that are no longer needed.