From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58356) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKwzh-0001zl-Ld for qemu-devel@nongnu.org; Mon, 31 Oct 2011 14:54:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKwzg-0007Ki-0l for qemu-devel@nongnu.org; Mon, 31 Oct 2011 14:54:01 -0400 Received: from mail-bw0-f45.google.com ([209.85.214.45]:64042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKwzf-0007KK-LH for qemu-devel@nongnu.org; Mon, 31 Oct 2011 14:53:59 -0400 Received: by bkbzu5 with SMTP id zu5so1138677bkb.4 for ; Mon, 31 Oct 2011 11:53:58 -0700 (PDT) From: Pavel Borzenkov Date: Mon, 31 Oct 2011 22:53:35 +0400 Message-Id: <1320087218-4230-1-git-send-email-pavel.borzenkov@gmail.com> Subject: [Qemu-devel] [PATCH v2 0/3] Misc small fixes in cmd.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com The first patch fixes coding style of the functions affected by next two patches. Second patch fixes potential NULL pointer dereference (return value of realloc is not checked). Third patch fixes potential memory leak (for the case when realloc returns NULL). Pavel Borzenkov (3): cmd: Fix coding style in cmd.c cmd: Fix potential NULL pointer dereference cmd: Fix potential memory leak cmd.c | 168 ++++++++++++++++++++++++++++++++--------------------------------- 1 files changed, 82 insertions(+), 86 deletions(-)