Make sure the temporary file is closed before renaming it. Fixes #9730 (#9732)
Make sure the temporary file is closed before renaming it. Fixes #9730 (#9732)

* Make sure the temporay file is closed before renaming it. Fixes #9730

As reported [on the forun](https://root-forum.cern.ch/t/rootcint-cannot-create-dictionary-in-a-vm/48580), make sure the temporary file is closed before renaming it. Should fix #9730

* Another occurence

* Update core/dictgen/src/rootcling_impl.cxx

Fix typos. Thanks Axel!

Co-authored-by: Axel Naumann <cb9efc8f9015dd95c88a8e735ee07ab4f1027cd2@cern.ch>

* Comment formatting

Co-authored-by: Axel Naumann <cb9efc8f9015dd95c88a8e735ee07ab4f1027cd2@cern.ch>
olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root