Allow comedi_cleanup_calibration to accept a NULL argument.

This commit is contained in:
Frank Mori Hess 2008-03-14 17:52:20 +00:00
parent 5e90332b02
commit e0b0b89338

View file

@ -263,6 +263,7 @@ static comedi_calibration_t* alloc_calib_parse( void )
EXPORT_ALIAS_DEFAULT(_comedi_cleanup_calibration,comedi_cleanup_calibration,0.7.20);
extern void _comedi_cleanup_calibration( comedi_calibration_t *file_contents )
{
if(file_contents == NULL) return;
if( file_contents->driver_name )
{
free( file_contents->driver_name );