Received: from eggs.gnu.org ([2001:4830:134:3::10]:46042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ur2iQ-0006iu-Mo for qemu-devel@nongnu.org; Mon, 24 Jun 2013 05:05:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ur2iP-0005VT-71 for qemu-devel@nongnu.org; Mon, 24 Jun 2013 05:05:38 -0400 From: Markus Armbruster References: <1372055996-4072-1-git-send-email-kraxel@redhat.com> <1372055996-4072-13-git-send-email-kraxel@redhat.com> Date: Mon, 24 Jun 2013 10:06:17 +0200 In-Reply-To: <1372055996-4072-13-git-send-email-kraxel@redhat.com> (Gerd Hoffmann's message of "Mon, 24 Jun 2013 08:39:55 +0200") Message-ID: <87vc54ylty.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 12/13] qemu-char: report udb backend errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-trivial@nongnu.org, Anthony Liguori , qemu-devel@nongnu.org Typo in subject: s/udb/UDP/ Gerd Hoffmann writes: > Signed-off-by: Gerd Hoffmann > --- > qemu-char.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/qemu-char.c b/qemu-char.c > index 7d072a8..dcc91bb 100644 > --- a/qemu-char.c > +++ b/qemu-char.c > @@ -2255,6 +2255,8 @@ static CharDriverState *qemu_chr_open_udp(QemuOpts *opts) > > fd = inet_dgram_opts(opts, &local_err); > if (fd < 0) { > + qerror_report_err(local_err); > + error_free(local_err); > return NULL; > } > return qemu_chr_open_udp_fd(fd); Also plugs memory leak on error path. Worth mentioning in commit message.