WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Xenstored: eliminate double free and fixes for memory le

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: Xenstored: eliminate double free and fixes for memory leak
From: "Peter Teoh" <htmldeveloper@xxxxxxxxx>
Date: Mon, 17 Sep 2007 15:07:51 +0800
Delivery-date: Mon, 17 Sep 2007 00:08:33 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=A+q+jOMeOGFhCHdMI2rwdW7CepQ+NaM9Yf5yBsQqqEU=; b=KmmgiM3rYP2B5rxRf7z/+VLgrY1E34Ki078YUKEK8/nhHO8GF3+sso0GQV2cV3nFTsi5ZWIBtBgbc9SZdarNV7oVoy8v0qK5889SJPzwQK4DRCOXpg0idrOG3Kv0BhsBUcry4UUgrtzTzJOfS0XiVAJXMs4BLy/WPhGoII+8BEk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AUcAOksH9+uYAoZviX//HH1vsFCYDA27kQM4bP8WB1vCvUVQlKyJRbWuBYI0Xx9+EW8nhPk9J9H4jcDCbtQgvn43owTn1QGJHIqkQj+n01kAzarZGVNJAdfU2bzd+VF/ANsKguryCxMibexyT7V16Z0fEWZAUG7HKJVX2x+RGnk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <804dabb00709162254h4be27710gbeb807a8c7f24a3@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <804dabb00709161919n6eb52d5apcb3aaff5f20e42bc@xxxxxxxxxxxxxx> <804dabb00709162248i756de19eh1397e5075937fe95@xxxxxxxxxxxxxx> <804dabb00709162254h4be27710gbeb807a8c7f24a3@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On top of abovementioned problems I missed out this one:

canonicalize() may return an existing pointer as a value - so no
memory deallocation is needed, but it also may return a newly
allocated memory - for which deallocation is needed.   And currently
all the results returned from canonicalize() are not freed.

Please let me know how to fix this.

Thanks.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel