qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH]:Use qemu_malloc & qemu_free instead of malloc &


From: vibisreenivasan
Subject: Re: [Qemu-devel] [PATCH]:Use qemu_malloc & qemu_free instead of malloc & free
Date: Wed, 06 May 2009 12:51:41 +0530

hi Gred,
        Thanks for pointing that out.
        I will update patch & send it again.
regards
vibi

On Tue, 2009-05-05 at 14:50 +0200, Gerd Hoffmann wrote:
> Hi,
> 
> > -        path = malloc(len+1);
> > +        path = qemu_malloc(len+1);
> >           snprintf(path, len+1, "%.*s", len, str);
> >       } else
> >           path = strdup(str);
> 
> You need s/strdup/qemu_strdup/ here (and maybe elsewhere too), otherwise 
> you'll mix strdup + qemu_free().
> 
> cheers,
>    Gerd
> 
> 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]