[DVDnav-discuss] [PATCH] libdvdread: segfault and patch to fix it (again)

Rémi Duraffort ivoire at videolan.org
Tue Oct 19 10:12:28 CEST 2010


Hello,

> -    free(ptl_mait->countries[i].pf_ptl_mai);
> +    if (ptl_mait->countries[i].pf_ptl_mai)
> +      free(ptl_mait->countries[i].pf_ptl_mai);
AFAIK free(NULL) is totally valid so this change is just a non-op.


Best regards

-- 
Rémi Duraffort | ivoire
http://ivoire.dinauz.org/blog/


More information about the DVDnav-discuss mailing list