When calling insertMany does not release the memory?

I working mongo with C#. Use MongoDB.Driver(ver 2.10.4) at netcore3.1.
I created a million objects and inserted into the mongo with IMongoCollection.InsertManyAsync method. It was cost 500MB memory. When business the memory was not release .
How can I release memmory ?