[aot] Fix a memory leak related to constraint allocation/deallocation. (#4880)
authorvkargov <kargov@gmail.com>
Thu, 18 May 2017 18:08:58 +0000 (11:08 -0700)
committerLudovic Henry <ludovic@xamarin.com>
Thu, 18 May 2017 18:08:58 +0000 (14:08 -0400)
commit1009c92386c68c721f6fe508a530af521ada722d
tree7d50b5d29f28a0ad0c9a4b70b9b5424a5dc13d49
parent20ab5bfe7ae2cf84cd9e6fdad9758ded9f687ca2
[aot] Fix a memory leak related to constraint allocation/deallocation. (#4880)

* [jit] Make a copy of the constraint in mini_get_shared_gparam().

* [aot] Free the temporary gshared constraint in decode_class_ref().
mono/mini/aot-runtime.c
mono/mini/mini-generic-sharing.c