qemu-e2k/contrib/elf2dmp
Suraj Shirvankar 2a052b4ee0 contrib/elf2dmp: Use g_malloc(), g_new() and g_free()
QEMU coding style uses the glib memory allocation APIs, not
the raw libc malloc/free. Switch the allocation and free
calls in elf2dmp to use these functions (dropping the now-unneeded
checks for failure).

Signed-off-by: Suraj Shirvankar <surajshirvankar@gmail.com>
Message-id: 169753938460.23804.11418813007617535750-1@git.sr.ht
[PMM: also remove NULL checks from g_malloc() calls;
 beef up commit message]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2023-10-19 14:32:13 +01:00
..
addrspace.c contrib/elf2dmp: Use g_malloc(), g_new() and g_free() 2023-10-19 14:32:13 +01:00
addrspace.h elf2dmp: introduce physical block alignment 2023-09-21 16:07:15 +01:00
download.c elf2dmp: Check curl_easy_setopt() return value 2021-09-20 09:54:32 +01:00
download.h
err.h
kdbg.h
main.c contrib/elf2dmp: Use g_malloc(), g_new() and g_free() 2023-10-19 14:32:13 +01:00
meson.build meson: build contrib/ executables after generated headers 2022-01-12 14:09:06 +01:00
pdb.c contrib/elf2dmp: Use g_malloc(), g_new() and g_free() 2023-10-19 14:32:13 +01:00
pdb.h elf2dmp: rework PDB_STREAM_INDEXES::segments obtaining 2023-09-21 16:13:54 +01:00
pe.h contrib/elf2dmp: add PE name check and Windows Server 2022 support 2023-03-21 13:19:07 +00:00
qemu_elf.c contrib/elf2dmp: Use g_malloc(), g_new() and g_free() 2023-10-19 14:32:13 +01:00
qemu_elf.h elf2dmp: use Linux mmap with MAP_NORESERVE when possible 2023-09-21 16:13:54 +01:00