qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PULL 18/40] hmp: 'drive_add -n' for creating a node wi


From: Kevin Wolf
Subject: Re: [Qemu-block] [PULL 18/40] hmp: 'drive_add -n' for creating a node without BB
Date: Wed, 16 Mar 2016 11:47:08 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Am 16.03.2016 um 11:41 hat Paolo Bonzini geschrieben:
> > +void hmp_drive_add_node(Monitor *mon, const char *optstr)
> > +{
> > +    QemuOpts *opts;
> > +    QDict *qdict;
> > +    Error *local_err = NULL;
> > +
> > +    opts = qemu_opts_parse_noisily(&qemu_drive_opts, optstr, false);
> > +    if (!opts) {
> > +        return;
> > +    }
> > +
> > +    qdict = qemu_opts_to_qdict(opts, NULL);
> > +
> > +    if (!qdict_get_try_str(qdict, "node-name")) {
> > +        error_report("'node-name' needs to be specified");
> 
> qdict is leaked here, says Coverity.

I already sent a fix.

Kevin



reply via email to

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