Searched hist:ec45bbe5f1921c6553fbf9c0c76b358b0403c22d (Results 1 – 3 of 3) sorted by relevance
/qemu/util/ |
H A D | envlist.c | ec45bbe5f1921c6553fbf9c0c76b358b0403c22d Mon Mar 20 17:38:28 UTC 2017 Saurav Sachidanand <sauravsachidanand@gmail.com> util: Use g_malloc/g_free in envlist.c
Change malloc/strdup/free to g_malloc/g_strdup/g_free in util/envlist.c.
Remove NULL checks for pointers returned from g_malloc and g_strdup as they exit in case of failure. Also, update calls to envlist_create to reflect this.
Free array and array contents returned by envlist_to_environ using g_free in bsd-user/main.c and linux-user/main.c.
Update comments to reflect change in semantics.
Signed-off-by: Saurav Sachidanand <sauravsachidanand@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
|
/qemu/bsd-user/ |
H A D | main.c | ec45bbe5f1921c6553fbf9c0c76b358b0403c22d Mon Mar 20 17:38:28 UTC 2017 Saurav Sachidanand <sauravsachidanand@gmail.com> util: Use g_malloc/g_free in envlist.c
Change malloc/strdup/free to g_malloc/g_strdup/g_free in util/envlist.c.
Remove NULL checks for pointers returned from g_malloc and g_strdup as they exit in case of failure. Also, update calls to envlist_create to reflect this.
Free array and array contents returned by envlist_to_environ using g_free in bsd-user/main.c and linux-user/main.c.
Update comments to reflect change in semantics.
Signed-off-by: Saurav Sachidanand <sauravsachidanand@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
|
/qemu/linux-user/ |
H A D | main.c | ec45bbe5f1921c6553fbf9c0c76b358b0403c22d Mon Mar 20 17:38:28 UTC 2017 Saurav Sachidanand <sauravsachidanand@gmail.com> util: Use g_malloc/g_free in envlist.c
Change malloc/strdup/free to g_malloc/g_strdup/g_free in util/envlist.c.
Remove NULL checks for pointers returned from g_malloc and g_strdup as they exit in case of failure. Also, update calls to envlist_create to reflect this.
Free array and array contents returned by envlist_to_environ using g_free in bsd-user/main.c and linux-user/main.c.
Update comments to reflect change in semantics.
Signed-off-by: Saurav Sachidanand <sauravsachidanand@gmail.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
|