From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLaPH-0002XL-VN for qemu-devel@nongnu.org; Wed, 11 Feb 2015 11:44:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLaPE-0001NY-3n for qemu-devel@nongnu.org; Wed, 11 Feb 2015 11:44:55 -0500 Message-ID: <54DB86F6.6060005@redhat.com> Date: Wed, 11 Feb 2015 17:44:38 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1423673041-13522-1-git-send-email-kraxel@redhat.com> In-Reply-To: <1423673041-13522-1-git-send-email-kraxel@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] spice: fix memory leak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Luiz Capitulino On 11/02/2015 17:44, Gerd Hoffmann wrote: > Found by coverity. > > Signed-off-by: Gerd Hoffmann > --- > monitor.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/monitor.c b/monitor.c > index c3cc060..29d7e5b 100644 > --- a/monitor.c > +++ b/monitor.c > @@ -1101,6 +1101,7 @@ static int client_migrate_info(Monitor *mon, const QDict *qdict, > if (strcmp(protocol, "spice") == 0) { > if (!qemu_using_spice(&err)) { > qerror_report_err(err); > + error_free(local_err); > return -1; > } > > Reviewed-by: Paolo Bonzini