From: Tim Deegan Subject: Re: [PATCH] tools/xl: only use the special "--incoming" name on actual migration Date: Wed, 24 Nov 2010 09:52:29 +0000 Message-ID: <20101124095229.GE19638@whitby.uk.xensource.com> References: <17d93860b47414fc7fbe.1290421022@whitby.uk.xensource.com> <19692.5904.185300.135231@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <19692.5904.185300.135231@mariner.uk.xensource.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: Ian Jackson Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org At 19:33 +0000 on 23 Nov (1290540816), Ian Jackson wrote: > Tim Deegan writes ("[Xen-devel] [PATCH] tools/xl: only use the special "--incoming" name on actual migration"): > > tools/xl: only use the special "--incoming" name on actual migration > > and not on every susequent reboot. > > Well spotted. However, doesn't this: > > > + d_config.c_info.name = strdup(common_domname); > > leak the old value of c_info.name ? In the case where this happens, the old name has been passed by reference up the stack to the calling function, but in this path (the child of a fork) we never return to the caller. So, er, maybe? Tim. -- Tim Deegan Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)