[System.Information] Use Marshal.FreeHGlobal() instead of Libc.Free()
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 18 Oct 2023 05:31:40 +0000 (14:31 +0900)
committerSW Kim <sw0312.kim@samsung.com>
Fri, 17 Nov 2023 04:08:06 +0000 (13:08 +0900)
commit06e96dfbbefe1b9d5b45609a6f87f905b78178c2
tree2d647a3c495ef423c7b890d2cc22432f691228da
parent29862b7547dd2281e495b503e4fba196763955d9
[System.Information] Use Marshal.FreeHGlobal() instead of Libc.Free()

Use Marshal.FreeHGlobal() instead of Libc.Free() for ASAN
environment. Also, remove not any more used Libc.Free() Interop.

In ASAN environment, because Interop uses dlopen(), newly opended
libc causes different libc/asan alloc context from already allocaed
buffer, and it gives segment fault crash when calling Libc.Free().

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
src/Tizen.System.Information/Interop/Interop.Libc.cs [deleted file]
src/Tizen.System.Information/Interop/Interop.Libraries.cs
src/Tizen.System.Information/Usage/ProcessMemoryUsage.cs