[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 02/28] libxc: fix memory leak in load_p2m_frame_list error handling



On Wed, 2013-09-18 at 15:37 +1200, Matthew Daley wrote:
> Coverity-ID: 1055885
> Signed-off-by: Matthew Daley <mattjd@xxxxxxxxx>

Acked + applied.

Thanks.

> ---
>  tools/libxc/xc_domain_restore.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/libxc/xc_domain_restore.c b/tools/libxc/xc_domain_restore.c
> index b418963..939a76b 100644
> --- a/tools/libxc/xc_domain_restore.c
> +++ b/tools/libxc/xc_domain_restore.c
> @@ -368,6 +368,7 @@ static xen_pfn_t *load_p2m_frame_list(
>                   (P2M_FL_ENTRIES - 1) * sizeof(xen_pfn_t)) )
>      {
>          PERROR("read p2m_frame_list failed");
> +        free(p2m_frame_list);
>          return NULL;
>      }
>      



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.