[vlc-devel] [PATCH] free() character strings returned by var_GetNonEmptyString

Rémi Duraffort ivoire at via.ecp.fr
Mon Dec 15 16:22:03 CET 2008


Hello,
>              if( pwsz_input_range )
>                  delete pwsz_input_range;
> +            if( psz_input_range )
> +                free(pwsz_input_range);
> +            if( psz_polarisation )
> +                free(pwsz_input_range);
No need to check for a NULL before doing a free.
free( NULL ) == nop.

Best regards

-- 
ivoire | Rémi Duraffort



More information about the vlc-devel mailing list