Fix leak if mono_set_config_dir is called multiple times. (#12647)
commitc9583047e81697b38b70bb9d3f6f62e06f836779
authorRolf Bjarne Kvinge <rolf@xamarin.com>
Wed, 30 Jan 2019 14:15:57 +0000 (30 15:15 +0100)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Wed, 30 Jan 2019 14:15:57 +0000 (30 09:15 -0500)
tree90dfd04460889e2619a29000c67a682506dc1b64
parent434ec4110d27fb0e5720adc6060d3963a2484af1
Fix leak if mono_set_config_dir is called multiple times. (#12647)

Fix leak if mono_set_config_dir is called multiple times.

Fix leak if mono_set_config_dir is called multiple times by freeing the
previously stored value.

<!--
Thank you for your Pull Request!

If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed.

Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number
-->
mono/metadata/mono-config.c