[Libguestfs] [PATCH libguestfs v2 1/3] daemon: xattr: Refactor code which splits attr names from the kernel.

Pino Toscano ptoscano at redhat.com
Tue Mar 17 11:54:15 UTC 2020


On Monday, 16 March 2020 14:59:27 CET Richard W.M. Jones wrote:
> +static char **
> +split_attr_names (char *buf, size_t len)
> +{
> +  size_t i;
> +  DECLARE_STRINGSBUF (ret);

Theoretically speaking, this stringsbuf is leaked on error;
CLEANUP_FREE_STRINGSBUF can't be used though, as it frees also the
strings and not just the string array.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20200317/7978cb50/attachment.sig>


More information about the Libguestfs mailing list