From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvU6e-0000Cp-3M for qemu-devel@nongnu.org; Wed, 16 Jan 2013 09:36:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvU6b-00024f-Cl for qemu-devel@nongnu.org; Wed, 16 Jan 2013 09:36:44 -0500 From: Markus Armbruster Date: Wed, 16 Jan 2013 15:36:27 +0100 Message-Id: <1358346998-26328-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 00/11] Trivial memory allocation fixes & cleanups List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org Markus Armbruster (11): g_malloc(0) and g_malloc0(0) return NULL; simplify g_strdup(NULL) returns NULL; simplify hw/9pfs: Fix unchecked strdup() by converting to g_strdup() readline: Fix unchecked strdup() by converting to g_strdup() spice: Fix unchecked strdup() by converting to g_strdup() virtfs-proxy-helper: Fix unchecked strdup() by conv. to g_strdup() qemu-log: Fix unchecked strdup() by converting to g_strdup() qemu-log: Plug trivial memory leak in cpu_set_log_filename() libcacard: Fix unchecked strdup() by converting to g_strdup() qapi: Fix unchecked strdup() by converting to g_strdup() qemu-ga: Fix unchecked strdup() by converting to g_strdup() block/qcow2-refcount.c | 6 +----- block/vdi.c | 4 +--- fsdev/virtfs-proxy-helper.c | 4 ++-- hw/9pfs/virtio-9p-device.c | 8 ++------ hw/9pfs/virtio-9p-local.c | 8 ++++---- hw/9pfs/virtio-9p.c | 6 +----- hw/block-common.c | 4 +--- hw/vhost.c | 7 ++----- libcacard/vcard_emul_nss.c | 4 ++-- libcacard/vreader.c | 2 +- libcacard/vscclient.c | 4 ++-- net/net.c | 4 +--- qapi/qmp-registry.c | 2 +- qemu-log.c | 15 ++++++++++----- qga/commands.c | 2 +- readline.c | 4 ++-- slirp/slirp.c | 8 ++------ ui/spice-core.c | 4 ++-- util/qemu-option.c | 8 ++------ 19 files changed, 40 insertions(+), 64 deletions(-) -- 1.7.11.7