qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 04/18] block/rbd: Propagate errors to open and c


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 04/18] block/rbd: Propagate errors to open and create methods
Date: Tue, 13 May 2014 13:51:56 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 05/13/2014 10:02 AM, Markus Armbruster wrote:
> Completes the conversion to Error started in commit 015a103^..d5124c0.
> 
> Cc: Josh Durgin <address@hidden>
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
>  block/rbd.c | 66 
> +++++++++++++++++++++++++++++++------------------------------
>  1 file changed, 34 insertions(+), 32 deletions(-)
> 

> @@ -285,6 +289,7 @@ static int qemu_rbd_set_conf(rados_t cluster, const char 
> *conf)
>  static int qemu_rbd_create(const char *filename, QEMUOptionParameter 
> *options,
>                             Error **errp)
>  {
> +    Error *local_err = NULL;
>      int64_t bytes = 0;
>      int64_t objsize;
>      int obj_order = 0;
> @@ -301,7 +306,7 @@ static int qemu_rbd_create(const char *filename, 
> QEMUOptionParameter *options,
>      if (qemu_rbd_parsename(filename, pool, sizeof(pool),
>                             snap_buf, sizeof(snap_buf),
>                             name, sizeof(name),
> -                           conf, sizeof(conf)) < 0) {
> +                           conf, sizeof(conf), &local_err) < 0) {
>          return -EINVAL;

Doesn't this leak local_err?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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