[Libguestfs] Coverity: possible false positive in debug_qtrace

Richard W.M. Jones rjones at redhat.com
Thu Jun 9 10:41:45 UTC 2011


http://git.annexia.org/?p=libguestfs.git;a=blob;f=daemon/debug.c;h=cd3e8a5f0294a910782b38552d2b0757869f862c;hb=HEAD#l430

Coverity complains about the error path from posix_memalign (lines
477-482) saying that 'buf' will be leaked.

However my reading of the posix_memalign man page is that if the
return value from posix_memalign != 0 then 'buf' would not have been
allocated.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v




More information about the Libguestfs mailing list