| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/2] libxl: Do not leak data on error path from libxl__read_sysfs_file_contents
 Chun Yan Liu writes ("Re: [PATCH 2/2] libxl: Do not leak data on error path 
from libxl__read_sysfs_file_contents"):
> <1459782600-16073-2-git-send-email-ian.jackson@xxxxxxxxxxxxx>, Ian Jackson
> <ian.jackson@xxxxxxxxxxxxx> wrote: 
> > +    free(data); 
> 
> 'data' is malloced with 'gc', it'll be freed by GC_FREE. Do we need to free
> it here?
Oh, you are quite right.  My patch was wrong.
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |