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

Re: [Libguestfs] [PATCH] lib: update inspect_list_applications to return app_arch (RHBZ#859949)



On Mon, Oct 15, 2012 at 10:00:15PM +0100, Richard W.M. Jones wrote:
> > +  if (arch)
> > +    free (arch);

BTW you don't need to write if (foo) free (foo); because
free (NULL) is perfectly OK in modern C.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top


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