From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvnVj-0007xw-TH for qemu-devel@nongnu.org; Thu, 17 Jan 2013 06:19:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvnVi-0001JC-Pw for qemu-devel@nongnu.org; Thu, 17 Jan 2013 06:19:55 -0500 Date: Thu, 17 Jan 2013 12:19:51 +0100 From: Stefan Hajnoczi Message-ID: <20130117111951.GH2586@stefanha-thinkpad.redhat.com> References: <1358357540-29862-1-git-send-email-armbru@redhat.com> <1358357540-29862-4-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1358357540-29862-4-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 03/11] hw/9pfs: Fix unchecked strdup() by converting to g_strdup() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org On Wed, Jan 16, 2013 at 06:32:12PM +0100, Markus Armbruster wrote: > diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c > index 6eab7f7..74155fb 100644 > --- a/hw/9pfs/virtio-9p-device.c > +++ b/hw/9pfs/virtio-9p-device.c > @@ -94,7 +94,7 @@ VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf) > exit(1); > } > > - s->tag = strdup(conf->tag); > + s->tag = g_strdup(conf->tag); > s->ctx.uid = -1; > > s->ops = fse->ops; s->tag is leaked. Want to send a follow-up patch to g_free() it?