[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)
committerChanwoo Choi <chanwoo@kernel.org>
Mon, 23 Oct 2023 08:05:38 +0000 (17:05 +0900)
commit168fe31bb144a0ab38ec3ed1cae6a305091beec8
treebffe2035574a15c3cff34fc5c05ee45f1403787e
parent3930b1c7a3c4c9661087b207090518d553806b77
[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