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

Re: [Xen-devel] [PATCH] tools/libxc/xc_linux_save.c

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] tools/libxc/xc_linux_save.c
From: Bastian Blank <bastian@xxxxxxxxxxxx>
Date: Fri, 12 Aug 2005 12:17:59 +0200
Delivery-date: Fri, 12 Aug 2005 10:16:34 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1123794913.3043.54.camel@thinkpad>
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: <1123794913.3043.54.camel@thinkpad>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Thu, Aug 11, 2005 at 04:15:13PM -0500, Jerone Young wrote:
>      if (pfn_type != NULL)
>          free(pfn_type);
> +
> +    if (pfn_batch != NULL)
> +       free(pfn_batch);
> 
> +    if (to_send != NULL)
> +       free(to_send);
> +
> +    if (to_fix != NULL)
> +       free(to_fix);
> +
> +    if (to_skip != NULL)
> +       free(to_skip);

free checks for null pointer themself.

Bastian

-- 
Extreme feminine beauty is always disturbing.
                -- Spock, "The Cloud Minders", stardate 5818.4

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>