From: Vincent Hanquez Subject: [PATCH 2/8] don't free ifname, can lead to double free Date: Fri, 8 Jan 2010 11:17:55 +0000 Message-ID: <1262949481-25530-3-git-send-email-vincent.hanquez@eu.citrix.com> References: <1262949481-25530-1-git-send-email-vincent.hanquez@eu.citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.6.6" Return-path: In-Reply-To: <1262949481-25530-1-git-send-email-vincent.hanquez@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Vincent Hanquez List-Id: xen-devel@lists.xenproject.org --------------1.6.6 Content-Type: text/plain; charset="UTF-8"; format=fixed Content-Transfer-Encoding: quoted-printable ifname is mostly handled directly in xl now, do not attempts to free this= . Signed-off-by: Vincent Hanquez --- tools/libxl/xl.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) --------------1.6.6 Content-Type: text/x-patch; name="0002-don-t-free-ifname-can-lead-to-double-free.patch" Content-Disposition: attachment; filename="0002-don-t-free-ifname-can-lead-to-double-free.patch" Content-Transfer-Encoding: quoted-printable diff --git a/tools/libxl/xl.c b/tools/libxl/xl.c index 79d2f6c..996965b 100644 --- a/tools/libxl/xl.c +++ b/tools/libxl/xl.c @@ -888,9 +888,6 @@ start: } =20 close(logfile); - for (i =3D 0; i < num_vifs; i++) { - free(vifs[i].ifname); - } free(disks); free(vifs); free(vfbs); --------------1.6.6 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------1.6.6--