OSDN Git Service

linux-user/syscall.c: malloc()/calloc() to g_malloc()/g_try_malloc()/g_new0()
authorHarmandeep Kaur <write.harmandeep@gmail.com>
Tue, 6 Oct 2015 16:17:12 +0000 (21:47 +0530)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 8 Jan 2016 09:36:13 +0000 (11:36 +0200)
commit0e173b24b523b432854689717e09de5c95c158f8
tree60c4869c464ea1cd50873fabbd39a256d965d7a4
parent3e24bb3f1277ee25743f0a3274306080df80da2c
linux-user/syscall.c: malloc()/calloc() to g_malloc()/g_try_malloc()/g_new0()

Convert malloc()/ calloc() calls to g_malloc()/ g_try_malloc()/ g_new0()

All heap memory allocation should go through glib so that we can take
advantage of a single memory allocator and its debugging/tracing features.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Harmandeep Kaur <write.harmandeep@gmail.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c