From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alGlg-0002PH-C2 for qemu-devel@nongnu.org; Wed, 30 Mar 2016 10:06:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alGlc-00071i-GM for qemu-devel@nongnu.org; Wed, 30 Mar 2016 10:06:44 -0400 MIME-Version: 1.0 In-Reply-To: References: <1458757923-11362-1-git-send-email-haris.phnx@gmail.com> From: haris iqbal Date: Wed, 30 Mar 2016 19:36:13 +0530 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [Qemu-Devel] [PATCH] Changed malloc to g_malloc, free to g_free in linux-user/qemu.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: QEMU Trivial , Peter Maydell , Markus Armbruster , Paolo Bonzini Hi, Patch is attached in the previous mail. Looking forward to your review. On Tue, Mar 29, 2016 at 9:23 PM, haris iqbal wrote: > Hi, > > Can I get a respond for this patch. Is it complete, or did I miss something? > > > On Thu, Mar 24, 2016 at 12:02 AM, Md Haris Iqbal wrote: >> Signed-off-by: Md Haris Iqbal >> --- >> linux-user/qemu.h | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/linux-user/qemu.h b/linux-user/qemu.h >> index 26b0ba2..3c3fd15 100644 >> --- a/linux-user/qemu.h >> +++ b/linux-user/qemu.h >> @@ -381,7 +381,7 @@ static inline void *lock_user(int type, abi_ulong guest_addr, long len, int copy >> #ifdef DEBUG_REMAP >> { >> void *addr; >> - addr = malloc(len); >> + addr = g_malloc(len); >> if (copy) >> memcpy(addr, g2h(guest_addr), len); >> else >> @@ -407,7 +407,7 @@ static inline void unlock_user(void *host_ptr, abi_ulong guest_addr, >> return; >> if (len > 0) >> memcpy(g2h(guest_addr), host_ptr, len); >> - free(host_ptr); >> + g_free(host_ptr); >> #endif >> } >> >> -- >> 1.9.1 >> > > > > -- > > With regards, > > Md Haris Iqbal, > Placement Coordinator, MTech IT > NITK Surathkal, > Contact: +91 8861996962 -- With regards, Md Haris Iqbal, Placement Coordinator, MTech IT NITK Surathkal, Contact: +91 8861996962