Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MixrM-0001yc-2d for qemu-devel@nongnu.org; Wed, 02 Sep 2009 17:59:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MixrG-0001wH-Hx for qemu-devel@nongnu.org; Wed, 02 Sep 2009 17:59:18 -0400 Received: from [199.232.76.173] (port=60909 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MixrG-0001wE-EZ for qemu-devel@nongnu.org; Wed, 02 Sep 2009 17:59:14 -0400 Received: from smtp6-g21.free.fr ([212.27.42.6]:35185) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MixrF-0007TB-NS for qemu-devel@nongnu.org; Wed, 02 Sep 2009 17:59:14 -0400 From: Jean-Christophe DUBOIS Date: Wed, 2 Sep 2009 23:59:06 +0200 Message-Id: <1251928746-429-1-git-send-email-jcd@tribudubois.net> Subject: [Qemu-devel] [PATCH] mv strdup to qemu_strdup in vl.c List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jean-Christophe DUBOIS There are few places in vl.c not using the qemu version of malloc/free/strdup. Fix it. Signed-off-by: Jean-Christophe Dubois --- vl.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vl.c b/vl.c index 4188178..566254e 100644 --- a/vl.c +++ b/vl.c @@ -854,7 +854,7 @@ static void configure_alarms(char const *opt) exit(0); } - arg = strdup(opt); + arg = qemu_strdup(opt); /* Reorder the array */ name = strtok(arg, ","); @@ -883,7 +883,7 @@ next: name = strtok(NULL, ","); } - free(arg); + qemu_free(arg); if (cur) { /* Disable remaining timers */ @@ -4764,7 +4764,7 @@ char *qemu_find_file(int type, const char *name) /* If name contains path separators then try it as a straight path. */ if ((strchr(name, '/') || strchr(name, '\\')) && access(name, R_OK) == 0) { - return strdup(name); + return qemu_strdup(name); } switch (type) { case QEMU_FILE_TYPE_BIOS: -- 1.6.0.4