From: Ian Jackson Subject: Re: [PATCH 2/3] xl: use xrealloc in domain create Date: Fri, 19 Feb 2016 16:03:10 +0000 Message-ID: <22215.15550.520300.520571@mariner.uk.xensource.com> References: <1455717855-2344-1-git-send-email-ian.campbell@citrix.com> <1455717855-2344-2-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1455717855-2344-2-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: wei.liu2@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH 2/3] xl: use xrealloc in domain create"): > Using bare realloc risks leaking the old pointer if the realloc fails. > > Since xrealloc exits on such failures, drop the error handling. > > Noticed while fixing, but not related to, CID 1055898. > > Signed-off-by: Ian Campbell Acked-by: Ian Jackson And queued for push. Ian.